0

I have a react-native project which is running in Android and iOS perfectly, I know that a react-native app can run on both platform Mobile and Web. So how can I run my current code on Web or how can I convert the current mobile app to the web app.

I have already installed react-dom, react-native-web but I am not getting any success.

1
  • as you said, react-native-web is the best way to turn your app into web. If it doesn't work (errors or something else, in that case please show us what errors you are getting), you should check on reactJS Commented Aug 8, 2019 at 16:13

1 Answer 1

1

Where did you read that React Native runs Web Apps?

React Native is a framework that only is used to build Mobile Apps.

Probably you are confusing React Native with ReactJS.

I leave you here what is React JS and how to get started, it is so similar to React Native, it won't be so difficult to understand for you if you use React Native.

https://reactjs.org/

Sign up to request clarification or add additional context in comments.

1 Comment

Then what is npm run web for? My package.json scripts.web is set to expo start --web, which I would think ports the JSX to run in a browser. Right?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.