androidreact-nativereact-native-gesture-handler

A problem occurred configuring project ':react-native-gesture-handler'


Hey guys I've been trying for so long to solve this issue but unfortunately i haven't figured out how, hope you guys can help me please. so i've a react-native project with my friend , and one of my friend add react-native-gesture-handler package for our uses and he doesn't have no errors or issues with this package, but when i pulled his changes and try to run the app using npx react-native-run-android i got this error in that you can see in this picture, i've trying to install the package using npm i react-native-gesture-handler and it's doesn't show any errors while installing it , but as i already said, the issue was when im starting to run the app using npx react-native-run-android

hopfully you guys can help me solve it, thanks a lot.

ScreenShot of the error Continue ScreenShot of the errorC


Solution

  • Have you linked it to react-native after installing? e.g. react-native link react-native-gesture-handler

    If not, try that > clean cache > build > run.

    See here for more details on installation: https://docs.swmansion.com/react-native-gesture-handler/docs/#installation

    Also confirm both of you are on the same React version(s).