@@ -22,24 +22,33 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
2222{
2323 NSURL *jsCodeLocation;
2424
25- // Loading JavaScript code - uncomment the one you want.
26-
27- // OPTION 1
28- // Load from development server. Start the server from the repository root:
29- //
30- // $ npm start
31- //
32- // To run on device, change `localhost` to the IP address of your computer, and make sure your computer and
33- // iOS device are on the same Wi-Fi network.
25+ /* *
26+ * Loading JavaScript code - uncomment the one you want.
27+ *
28+ * OPTION 1
29+ * Load from development server. Start the server from the repository root:
30+ *
31+ * $ npm start
32+ *
33+ * To run on device, change `localhost` to the IP address of your computer
34+ * (you can get this by typing `ifconfig` into the terminal and selecting the
35+ * `inet` value under `en0:`) and make sure your computer and iOS device are
36+ * on the same Wi-Fi network.
37+ */
38+
3439 jsCodeLocation = [NSURL URLWithString: @" http://localhost:8081/Examples/TicTacToe/TicTacToeApp.includeRequire.runModule.bundle" ];
3540
36- // OPTION 2
37- // Load from pre-bundled file on disk. To re-generate the static bundle, run
38- //
39- // $ curl http://localhost:8081/Examples/TicTacToe/TicTacToeApp.includeRequire.runModule.bundle -o main.jsbundle
40- //
41- // and uncomment the next following line
42- // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
41+ /* *
42+ * OPTION 2
43+ * Load from pre-bundled file on disk. To re-generate the static bundle, `cd`
44+ * to your Xcode project folder in the terminal, and run
45+ *
46+ * $ curl 'http://localhost:8081/Examples/TicTacToe/TicTacToeApp.includeRequire.runModule.bundle' -o main.jsbundle
47+ *
48+ * then add the `main.jsbundle` file to your project and uncomment this line:
49+ */
50+
51+ // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
4352
4453 RCTRootView *rootView = [[RCTRootView alloc ] initWithBundleURL: jsCodeLocation
4554 moduleName: @" TicTacToeApp"
0 commit comments