Can't run React Native Navigation with ESBuild
Greetings, everyone.
I can't use the Expo framework due to project requirements.
Is it possible to use React Navigation in a vanilla React Native project that has React Native for Web installed?
The documentation states that this is possible, but it doesn't explain how exactly:
https://reactnavigation.org/docs/web-support/
Can you provide a minimal example?
I tried using this library to remove "Flow types": https://www.npmjs.com/package/esbuild-plugin-flow
Thanks.
| package | version |
|---|---|
| esbuild | 0.25.0 |
| @react-navigation/native | 7.0.15 |
| @react-navigation/bottom-tabs | 7.2.1 |
| @react-navigation/native-stack | 7.2.1 |
| react-native-screens | 4.9.1 |
| react-native-safe-area-context | 5.3.0 |
| react-native | 0.78.0 |
| react-native-web | 0.19.13 |
| node | 22.14.0 |
| yarn | 1.22.22 |
Additional information from React Native Navigation: https://github.com/react-navigation/react-navigation/issues/12474
Sorry but I don't know anything about React Native Navigation, so I can't provide an example. I have also never used React Native myself. You'd probably be better served asking for advice from someone who uses React Native.
Closing this issue as this is not the right place to ask this question.