esbuild icon indicating copy to clipboard operation
esbuild copied to clipboard

Can't run React Native Navigation with ESBuild

Open taronsarkisyan opened this issue 11 months ago • 2 comments

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

taronsarkisyan avatar Mar 07 '25 12:03 taronsarkisyan

Additional information from React Native Navigation: https://github.com/react-navigation/react-navigation/issues/12474

taronsarkisyan avatar Mar 07 '25 13:03 taronsarkisyan

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.

evanw avatar Mar 07 '25 15:03 evanw

Closing this issue as this is not the right place to ask this question.

evanw avatar Jul 09 '25 15:07 evanw