question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Swipeable does not work on Android on RN 0.59.8

See original GitHub issue

Hi, 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:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
Aure77commented, Jun 19, 2019

Maybe you miss these instructions for create root view on android : https://kmagiera.github.io/react-native-gesture-handler/docs/getting-started.html#android

1reaction
JeremyBradshaw7commented, Aug 23, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found