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.

  1. open ios/appdelegate.m
  2. change ip in url localhost laptop's ip
  3. in xcode select phone build target , press "build , run"

ps:http://facebook.github.io/react-native/docs/runningondevice.html#content


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -