Skip to content

Instantly share code, notes, and snippets.

@dazld
Created March 26, 2018 20:15
Show Gist options
  • Save dazld/e85ad7a596c37aaedc40983bde5dc2e4 to your computer and use it in GitHub Desktop.
Save dazld/e85ad7a596c37aaedc40983bde5dc2e4 to your computer and use it in GitHub Desktop.
➜ ios re-natal init foo
Creating foo
☕ Grab a coffee! I will use yarn, but fetching deps still takes time...
Creating Leiningen project
Updating Leiningen project
Creating React Native skeleton.
Creating Re-Natal config
Compiling ClojureScript
To get started with your new app, first cd into its directory:
cd foo
Run iOS app:
react-native run-ios > /dev/null
To use figwheel type:
re-natal use-figwheel
lein figwheel ios
Reload the app in simulator (⌘ + R)
At the REPL prompt type this:
(in-ns 'foo.ios.core)
Changes you make via the REPL or by changing your .cljs files should appear live.
Try this command as an example:
(dispatch [:set-greeting "Hello Native World!"])
✔ Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment