Comments (6)
I can confirm it is working on 2.0.6! But I have the same issue with 2.0.7
The issue seems to be caused by this function:
if (open) { [...itemRefs.current.entries()].forEach(([id, ref]) => { if (id !== item.id && ref) ref.close(); });
from react-native-swipeable-item.
Did a little more testing and this is a regression in 2.0.7, 2.0.6 works correctly.
from react-native-swipeable-item.
So, there are two things going on there, both should be fixed in 2.0.8
--
- I named the
open
parameter inonChange
poorly as it is an enum. It is now renamed toopenDirection
. It shouldn't be checked for truthiness since it is always a string value. onChange
was being called too often.
https://github.com/computerjazz/react-native-swipeable-item/releases/tag/v2.0.8
from react-native-swipeable-item.
Thank you so much. Everything works great with 2.0.8
.
from react-native-swipeable-item.
We're seeing this in 2.0.8 still, the app becomes progressively slower especially after swiping. We ended up rolling back to 2.0.6 and the issue was resolved. I've confirmed that we're properly checking open and that onChange is not being called frequently in 2.0.8. We're on reanimated 2.9.1.
from react-native-swipeable-item.
@jmif If you can provide a repro via an expo snack I'll take a look.
from react-native-swipeable-item.
Related Issues (20)
- where can i find the "./SwipeableItem" file in readme example HOT 1
- Readme Example code HOT 1
- SwipeableItem consistently gets stuck between snap points HOT 5
- Inconsistent behavior with multiple snap points HOT 2
- Calling %s on the ref of an Animated component is no longer necessary. You can now directly use the ref instead. This method will be removed in a future release. e getNode() HOT 1
- Added extra onPress is always invoked HOT 4
- Changing `snapPointsLeft` does not re-render `SwipableItem` HOT 1
- Freeze some elements from dragging HOT 1
- Please support `react-native-reanimated` 2
- Uncaught TypeError: Cannot read properties of undefined (reading 'previousStyle') when experimenting readme example HOT 6
- Generic type not passed to SwipeableItem props
- Package does not support [email protected] HOT 3
- Add custom props to RowItem HOT 3
- Can't press buttons during the swiping HOT 5
- Swipe not working with latest version of Expo HOT 1
- Swipeable-item not swiping but draggable flatlist works HOT 1
- Improve README HOT 2
- Types incompatible with reanimated 3.2
- Trying to get it to work with Reanimated
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-swipeable-item.