0

I am a beginner 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.

Thanks.

1

2 Answers 2

0

What do you mean by run it in a browser ? If you mean display logs, yeah you can by activating the remote debug in your simulator.

But if you are talking about displaying your UI in a browser, then NO. react-native is to develop mobile apps, so to display your app you will need a simulator (android or ios depends on your laptop).

P.S: I advise you to you Expo it will be easier for you since you are a beginner

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

Comments

0

You can not run react native apps in a browser ,But since I am guessing you have a smartphone ,you can build a React Native app using Expo and you can test it in your phone.

Expo is actually recomended if you are a new developer on RN .

You sould use create-react-native-app to create your app and then after npm run just scan the QR code from your smartphone(you ll need to download expo there too) and voila!

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.