LeoTest8 / rn_demo_leo

0 stars 0 forks source link

Cannot read property 'isConfigured' of undefined #1

Open LeoTest8 opened 3 weeks ago

LeoTest8 commented 3 weeks ago

After I installed @react-navigation/drawer library and when I run my ios simulator, then it prompted this error of Cannot read property 'isConfigured' of undefined.

LeoTest8 commented 3 weeks ago

This error normally happens when you use drawer navigator. To solve this, you have to go to babel.config.js file. and paste this: plugins: [ "react-native-reanimated/plugin", ], The whole code will look like this: module.exports = { presets: ['module:@react-native/babel-preset'], plugins: [ "react-native-reanimated/plugin", ], }; After that run: npm start -- --reset-cache