Not sure if this is an Expo issue or a react-navigation issue. I thought I would ask here first.
I have a starter app (created by expo init
with “tabs (TypeScript)”), and wanted to add a drawer navigator. Following the instructions from reactnavigation.org, I have done:
yarn add @react-navigation/drawer
expo install react-native-gesture-handler react-native-reanimated
- added
import 'react-native-gesture-handler';
to the top of myApp.tsx
- added
plugins: ["react-native-reanimated/plugin"],
to mybabel.config.js
- added a call to
createDrawerNavigator()
to my app
When I use expo start
to run the app in Android, it runs without errors. When I run it in a browser, it bundles without errors, but fails at launch time with several messages like this:
Web Bundling complete 6242ms
./node_modules/@react-navigation/drawer/lib/module/views/DrawerView.js:22
Module not found: Can't resolve 'react-native-reanimated'
Any suggestions how to get past this problem? As far as I can tell, Expo has successfully installed react-native-reanimated 2.3.1.