Skip to content

a demo use reacct-native-web.使用reacct-native-web和webpack,实现write once run everywhere。

Notifications You must be signed in to change notification settings

damiaozi/ReactNativeWeb

Repository files navigation

ReactNativeWeb

a demo use reacct-native-web

本demo,使用reacct-native-web和webpack,实现write once run everywhere。

支持安卓、ios、web三端

1、首先,你应该已经装了react-native,

2、然后,下载这个代码,

3、安装:

npm install

4、运行在安卓

react-native run-android

5、运行在ios

react-native run-ios

6、运行在web

6.1、执行如下命令,

./node_modules/.bin/webpack-dev-server --inline

6.2、然后浏览器打开,

http://localhost:8080/

end

ok了,三端融合helloworld 就这样开始了。。。。

欢迎各位小伙伴加入React@Native@Web群,

一起交流RN4web哟。QQ群号:605887941

Related

1、react-native-web

2、React Native For Web: A Glimpse Into The Future

3、ReactNativeWeb

About

a demo use reacct-native-web.使用reacct-native-web和webpack,实现write once run everywhere。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published