React-native-gesture-handler: swipeable action not working

Created on 22 Jan 2019  路  1Comment  路  Source: software-mansion/react-native-gesture-handler

I am trying to create a swipeable component using react-native-gesture-handler/Swipeable.
The example app works fine when run on the device. But when i try to use the exact same code on my app, no swipe action works. The component do not even swipe.

I even copied the entire swipeable folder inside the example and added it as a separate screen on my app, still nothing worked

Do I need to add any extra configuration using Swipeable component?

I use react-native 0.57.8 with react-navigation 3.0.9.

Even the RectButton does not respond to click. Non of the action or gesture work.

Most helpful comment

The issue is fixed. I did not follow the setup process properly. Did not add the RNGestureHandlerEnabledRootView in the MainActivity.

Now everything works fine

>All comments

The issue is fixed. I did not follow the setup process properly. Did not add the RNGestureHandlerEnabledRootView in the MainActivity.

Now everything works fine

Was this page helpful?
0 / 5 - 0 ratings