Skip to content

Can't run React Native Navigation with ESBuild #4108

Open
@taronsarkisyan

Description

@taronsarkisyan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions