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(),
^
Did you install the https://github.com/kmagiera/react-native-gesture-handler package ?
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.
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.RNGestureHandlerPackageHope it might help others 👍