Closed samuelpismel closed 4 years ago
The same happens if I add the react compiler via bit import bit.envs/compilers/react -c
Hi, I solved the issue by expending the metro config file. https://github.com/teambit/envs/tree/master/packages/react-native#metro-has-encountered-an-error-while-trying-to-resolve-module-react-native
Describe the bug
With a brand new expo project, if I import the react-native compiler with
bit import bit.envs/compilers/react-native -c
I got this error when I run the project:Steps to Reproduce
Create a new expo project:
expo init -t blank expo-project
cd expo-project
Initialize bit:
bit init --package-manager yarn
Import the react-native compiler:
bit import bit.envs/compilers/react-native -c
Run expo server:
expo start
Connect to the server: Copy the url expo gives you. Open it in expo client app in your emulator (android in my case)
Expected Behavior
Be able to use the bit tool in the project.
Screenshots, exceptions and logs
Specifications
Additional context
We should have a section for react-native and expo in the documentation. They are super popular.