undefined is not an object (evaluating 'RNGestureHandlerModule.State'

前端 未结 20 775
Happy的楠姐
Happy的楠姐 2020-12-01 04:43

I have installed react-navigation in my React Native project. Its a starter project doesn\'t have any codes. But while running project I am facing

20条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-01 04:59

    I struggled with this and none of the above answers worked for me. Here's what I had to do:

    • Delete your ios folder entirely.
    • Delete your node_modules folder and package-lock.json.
    • Restart your computer.
    • Run react-native eject to re-create your native code folders.
    • Run npm install
    • Run react-native link
    • Run npm run start -- --reset--cache
    • Now run react-native run-ios

提交回复
热议问题