Lightweight Node REPL for iOS and Android
$ git clone [email protected]:mzabriskie/PocketNode.git
$ cd PocketNode
$ npm installTo run the iOS app:
- Open
ios/PocketNode.xcodeprojin Xcode and hit ⌘-R to run. - Open
index.ios.jsin your text editor and make some changes. - Hit ⌘-R in the iOS simulator to reload the app.
- In Xcode go to Report navigator > PocketNode > Debug to see output from
console.log.
To run the Android app:
$ android avdthen select thereactnativedevice.$ react-native run-android- Open
index.android.jsin your text editor, and make some changes. - Hit F2 in the Android simulator to reload the app.
- Run
adb logcat *:S ReactNative:V ReactNativeJS:Vto see output fromconsole.log.
If you haven't setup Android development yet, see the setup guide.
Troubleshooting:
- For iOS make sure you are running Xcode 6.3 or newer.
- If you get
"Cannot read property 'root' of null"update watchman:
$ brew update
$ brew upgrade watchman