Skip to content

Instantly share code, notes, and snippets.

@mfikes
Created September 9, 2018 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfikes/059cfee98d9adba036758c2064d047ce to your computer and use it in GitHub Desktop.
Save mfikes/059cfee98d9adba036758c2064d047ce to your computer and use it in GitHub Desktop.
$ re-natal init FutureApp
Creating FutureApp
☕ Grab a coffee! Downloading deps might take a while...
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 future-app
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 'future-app.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
orion:Desktop$ cd future-app/
orion:future-app$ react-native run-ios > /dev/null
The following commands produced analyzer issues:
Analyze Base/RCTModuleMethod.mm normal x86_64
(1 command with analyzer issues)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment