IlyaDoroshin IlyaDoroshin - 1 year ago 94
iOS Question

What URL should I use with React Native Playground app?

I've installed ReactNative Playground from AppStore, trying to figure out, what Development Server url should I use to make this thing work?

The thing is, http://192.168.X.X:8080/index.ios.js returns ES6 non-transformed code, and RNPlay raises redbox with "Unexpected use of reserved word 'import'"


Answer Source

I've figured it out, hopefully.

If you need to check out specific version of React Native, use rninit package:

$ rninit init [Project Name] --source react-native@0.24.1

Don't forget, that RNPlay is bundled with some native packages, thus, you cannot use custom ones, only js-packages.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download