React native web browser

Method 1: react-native-web

https://github.com/necolas/react-native-web

Android emulator lists:

1
emulator -list-avds

Run emulator

1
emulator -avd [name]

Installation:

1
npm install react-web-cli -g

Method 2: expo (recommanded)

https://docs.expo.io/versions/latest/introduction/running-in-the-browser/

Ensure your project has at least expo@^33.0.0 installed.

1
2
3
4
5
6
$ npm i -g expo-cli

//Add web dependencies:
$ yarn add react-native-web react-dom

$ expo start --web

Running the expo and copy the homepage url:

expo

Or find the url in terminal:

terminal

Visit the url :

Visit

Exchange blogroll: http://laker.me/blog
Github:https://github.com/younglaker


React native web browser

本文原创自http://laker.me/blog,转载请注明出处,欢迎交换友链

如果本文对您有帮助,微信扫一扫,请我吃个鸡腿吧