I am quite new to Expo and am trying to turn my React Native App into an additional web app. I’m pretty excited about Expo Web / React Native Web, but unfortunately I have the problem that I don’t see any outputs in the Expo Dev Tool (where the webpack is started), nor in the command line outputs of console.log. Is there a trick for this?
If i do a Alert("...") instead of a console.log it works. But this is not so good to work with fetch.
Thanks for any help!
Related
I have project in react native and it was build in iOS and android successfully. I have not used react native cli for that project. Now I have to give support for web. So when I run the app all functionality should work in web same as in iOS and android. I have follow tutorial for that
https://javascript.plainenglish.io/how-to-integrate-react-native-web-existing-react-native-apps-8e4964ad2f0b
But when I run in the web it getting blank page.
I have tried many ways but it getting blank page. It is possible to run the app in web without using expo?
Please help.
if you don't want to use expo, i suggest you to use this react-native-web
I'm developing a React Native application with Expo, after a few weeks of development I wanted to check my app on the browser by running: expo start --web
The Expo project is starting without any issues, however when I navigate to the local address where the app is being served I get a nasty error:
This is my first React Native app and I'm not sure if the react-native-pager-view simply cannot be run in the browser or I just need to add some webpack configuration for it to succeed.
Any help would be much appreciated.
React native is not meant to work as PWA.
PWA is just a web application that depends on chrome features to look and feel as mobile app. But they are not such smoothly experience as with a react-native or android/ios app.
If you are trying to test this on the web, be sure that you are following the steps in the official docs of react native. And check the example app from react-native-pager-view that works, you could start from there
I am using React Native, but I don't know how to run it in a browser, I tried searching in google but I didn't find anything, please give me a suggestion on how to run a react native in a browser
No, React Native can be tested only in mobile simulators like IOS and Android.
Using Expo you can run the app in your mobile using expo app(https://expo.io). It syncs using QR code.
My friends and I are building an Electron app (a personal project) that helps you build React Native apps. We would love to have a live preview of the React Native app within the Electron app. Is there a way to do this?
I tried seeing if Expo would allow you to do this but seems like there is no documentation.
It could be interesting to look at react-native-web and try to integrate it to electron. It would be lighter to support than an emulator .
I have not tried yet but it seems that there is a library that provided an extension to react-native-web / electron.
I hope that it will helps you !
I am using Visual Studio Code to build a React VR app and I am trying to figure out how I can inspect my code, i.e. through chrome dev tools. I have the React Developer Tools Chrome plugin installed however it is not detecting my React VR code. Are there any other ways?
I noticed nuclide, but that is only built for Atom?
Try React Native Debugger. A great and easy way to debug react-native apps. Since React-VR includes React Native as a dependency it also works with react-vr. (I used it with react-vr!).