Unable to resolve "./createHandler" from "node_modules/react-native-gesture-handler/GestureHandler.js"
See original GitHub issueSteps to reproduce:
1- run npm install --save react/navigation
2- run react-native link react-native-gesture-handler
(tried it with and without this command)
3- run npm install
4- run npm start
5- run on simulator or on phone expo app and you will get this error
Versions I am using:
Expo SDK: 32.0.0
react-native: 16.5.0
react-navigation: ^3.3.2
react-native-gesture-handler: 1.0.17
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Error: Unable to resolve module `react-native-gesture-handler`
You need to install react-native-gesture-handler as well separately in the project dependency list and link it too with native as well.
Read more >react-native-gesture-handler - npm
Experimental implementation of a new declarative API for gesture handling in react-native. Latest version: 2.8.0, last published: 2 months ...
Read more >unable to resolve module react-native-screens - You.com
well i have solved this by reinstalling / updating these packages. npm install --save react-native-gesture-handler react-native-reanimated react-native-screens.
Read more >Troubleshooting | React Native Gesture Handler - Open Source
There is a chance someone had this problem in the past and it has been resolved! When sure your problem hasn't been reported...
Read more >react-native-gesture-handler @ 1.1.0 .. 1.2.0 - Package Diff
createHandler.js. @@ -1,10 +1,11 @@. import React from 'react';. import { findNodeHandle, NativeModules, Touchable } from 'react-native';.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dhmoclex I believe the reason this worked is because you implicitly busted the packager cache.
Restarting the packager after running the below commands worked for me:
Had the same issue. Solved it by:
npm uninstall react-native-gesture-handler --save
npm install react-native-gesture-handler --save