Comments (3)
This sounds like it may be an issue with gesture disambiguation -- the pan gesture handler of the list might be capturing swipe before the Swipeable item engages. Try adding a small activationDistance
to the list and see if that helps:
<DraggableFlatList
activationDistance={15} // <--- add this
keyExtractor={item => item.key}
data={this.state.data}
renderItem={this.renderItem}
onDragEnd={({ data }) => this.setState({ data })}
/>
Reanimated 1.4+ is going to help a lot with performance -- I didn't know you could even install 1.7 on RN 59.
I've been testing mainly using this expo snack: https://snack.expo.io/@computerjazz/swipetodelete-pkg
And also occasionally running a non-expo RN 61 test project.
from react-native-swipeable-item.
After adding activationDistance
it works great in the iOS simulator (still on RN 0.59)! Thanks a lot.
from react-native-swipeable-item.
After adding activationDistance it works great in the iOS real device too.
from react-native-swipeable-item.
Related Issues (20)
- When scrolling it triggers onChange
- 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
- Example causes CPU to go to max HOT 6
- Improve README HOT 2
- Types incompatible with reanimated 3.2
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.