How do I build React Native iOS app to device through Xcode? -
i tried building awesomeproject
app device. build succeeds , splash screen shows, see red "could not connect development server" screen. says "ensure node server running - run 'npm start' react root."
it looks node server running because when npm start
eaddrinuse
message, saying port in use.
accessing development server device can iterate on device using development server. that, laptop , phone have on same wifi network.
- open ios/appdelegate.m
- change ip in url localhost laptop's ip
- in xcode select phone build target , press "build , run"
ps:http://facebook.github.io/react-native/docs/runningondevice.html#content
Comments
Post a Comment