React Native + React Native Navigation for Web without Expo #49884
Labels
Needs: Author Feedback
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
Type: Question
Issues that are actually questions and not bug reports.
Description
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?
An example of React Native Navigation that works without Expo on the Web (Webpack, ESBuild or something else..)
Thanks.
Steps to reproduce
I tried to bundle using ESBuild:
...
alias: {
'react-native': 'react-native-web',
},
...
and removed Flow types using this library:
https://www.npmjs.com/package/esbuild-plugin-flow
React Native Version
0.78.0
Affected Platforms
Runtime - Web
Stacktrace or Logs
Reproducer
https://github.com/facebook/react-native
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: