Swipeable does not work on Android on RN 0.59.8
See original GitHub issueHi, i am using gesture-handler with react-native-navigation and i followed setup for linking with that library by adding to MainApplication.java:
-imported - import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;;
- added -
new RNGestureHandlerPackage()
In app i wrapped screen like this:
Navigation.registerComponent( screens.RESERVATIONS, () => props => ( <Provider store={store}> <ReservationsScreen {...props} /> </Provider> ), () => gestureHandlerRootHOC(ReservationsScreen) );
However swipeable does not work on android. It builds without errors, works on IOS but android does not respond to swipes. What am i doing wrong?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Swipeable is not working on android? - React Native
here is my MessagesScreen.js import React from 'react'; import { FlatList, StyleSheet, View} from 'react-native'; import ListItem from '.
Read more >React-native-gesture-handler swipeable is not working on ...
Here is my code. import Swipeable from 'react-native-gesture-handler/Swipeable'; const RightActions = () => { return ( <TouchableOpacity ...
Read more >react native unable to resolve module - You.com | The AI ...
I ended up using 'rn-nodeify' to include fs into React Native. ... I had the same problem, I fixed that by below steps:...
Read more >react-native-community - Bountysource
Hi, I am trying to build something similar to iPhone maps app. The swippable modal opening when you click on map elements. My...
Read more >react-native-gesture-handler - npm
There are 1021 other projects in the npm registry using ... play with the API but don't feel like trying it on a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Maybe you miss these instructions for create root view on android : https://kmagiera.github.io/react-native-gesture-handler/docs/getting-started.html#android
I’m also having the issue of Swipeable not working on Android but only when it’s inside a ScrollView inside a Modal. I did follow the instructions pointed to by Aure77 but only the standard instructions as I wasn’t sure if “one of the native navigation libraries” referred to includes react-navigation, and what to do if it does (as it only shows instructions for the wix navigator). I’m on RN 0.59.10 and RNGH 1.3.0.