Closed Menardi closed 2 years ago
Oh no my bad! I'm sure rn web will be fine but you can test locally by running:
1) npm run example:web:env
2) npm run example:web:start
You'll see a tab open to http://localhost:3000/
in your default browser and you'll see a screen with a spinning react logo and the text "goodbye" (loaded from .env).
Thanks for the detailed testing instructions! I've just tested this PR, and web is showing "goodbye", so it is correctly using index.web.js
.
thanks both!!
I'll merge this and issue new version in a day or two.
thanks!
This PR should fix #76, but I haven't been able to test that it doesn't break configuration for
react-native-web
projects, as I have been unable to set that up. As far as I know,react-native-web
projects don't use Metro for bundling, and thisreact-native
key is specific to Metro, so it should be fine.