React-native-tab-view: error: package com.swmansion.gesturehandler.react

Created on 1 Mar 2018  ·  4Comments  ·  Source: satya164/react-native-tab-view

Hello,
I installed this plugin, link it with command 'react-native link'
then I get error

import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
^
C:\Users\XXX\Documents\Projects\React Native\shelfmint_mobile\android\app\src\main\java\com\moonsite\shelfmint\MainApplication.java:44: error: cannot find symbol
new RNGestureHandlerPackage(),
^

Most helpful comment

I know this issue is closed, but I've stumbled upon the same error when I try to run my app on Android. In the end, this fixed it for me:

open app/android/app/src/main/java/com/YOUR_APP_NAME/MainApplication.java:

change this import:
import com.swmansion.gesturehandler.RNGestureHandlerPackage;

to this:
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage

Hope it might help others 👍

All 4 comments

Please open a new issue according to the issue template.

I know this issue is closed, but I've stumbled upon the same error when I try to run my app on Android. In the end, this fixed it for me:

open app/android/app/src/main/java/com/YOUR_APP_NAME/MainApplication.java:

change this import:
import com.swmansion.gesturehandler.RNGestureHandlerPackage;

to this:
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage

Hope it might help others 👍

Thank you @jvandenaardweg It works.

Was this page helpful?
0 / 5 - 0 ratings