Is using react-native-gesture-handler in a bare React Native project unsupported? #3199
-
The documentation states If you are starting a new project, initialize it with npx create-expo-app@latest since it comes pre-installed with react-native-gesture-handler here. I have a bare RN project, in which I've tried to integrate RNGH (as a dependency for few libraries). The app always fails (when running with
Dependencies from {
...
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@fortawesome/react-native-fontawesome": "^0.3.2",
"@react-native-async-storage/async-storage": "^2.0.0",
"@react-navigation/drawer": "^6.7.2",
"@react-navigation/native": "^6.1.18",
"@react-navigation/native-stack": "^6.11.0",
"date-fns": "^4.1.0",
"iso8601-duration": "^2.1.2",
"react": "18.3.1",
"react-native": "0.75.4",
"react-native-app-auth": "^8.0.0",
"react-native-gesture-handler": "^2.20.2",
"react-native-reanimated": "^3.16.1",
"react-native-reanimated-carousel": "^3.5.1",
"react-native-safe-area-context": "^4.11.1",
"react-native-screens": "^3.34.0",
"react-native-size-matters": "^0.4.2",
"react-native-svg": "^15.8.0",
"styled-components": "^6.1.13"
},
... I've followed the instructions in the documentation and additionally tried including RNGH manually in So, as the title states, is not using Expo unsupported? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
It definitely is supported. Could you share result of either |
Beta Was this translation helpful? Give feedback.
-
Thanks for getting back. The output is
|
Beta Was this translation helpful? Give feedback.
-
Looking at your error message, have you checked if Gesture Handler is present inside |
Beta Was this translation helpful? Give feedback.
-
Thanks for the tip! Sure enough, RNGH was present in |
Beta Was this translation helpful? Give feedback.
Looking at your error message, have you checked if Gesture Handler is present inside
node_modules
directory? If not, try resetting npm cache (npm cache clean
), removenode_modules
,package-lock.json
and then runnpm install
once more.