Lightweight Node REPL for iOS and Android
$ git clone [email protected]:mzabriskie/PocketNode.git
$ cd PocketNode
$ npm install
To run the iOS app:
- Open
ios/PocketNode.xcodeproj
in Xcode and hit ⌘-R to run. - Open
index.ios.js
in 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 avd
then select thereactnative
device.$ react-native run-android
- Open
index.android.js
in your text editor, and make some changes. - Hit F2 in the Android simulator to reload the app.
- Run
adb logcat *:S ReactNative:V ReactNativeJS:V
to 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