Skip to content
Using shadow-cljs with react-native (vanilla)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android
assets
ios
src/main
.buckconfig
.eslintrc.js
.gitattributes
.gitignore
.watchmanconfig
README.md
app.json
babel.config.js
index.js
metro.config.js
package.json
shadow-cljs.edn

README.md

shadow-cljs-react-native

Demo app showing how to use shadow-cljs to target React Native.

Development

# first run : install the dependencies
$ yarn deps

# start watcher
$ yarn app:watch

# wait for compilation to finish
$ yarn app:android
# or
$ yarn app:ios

# open the project in the simulator

REPL

M-x cider-connect

(shadow.cljs.devtools.api/nrepl-select :app)

Simulator

General

Disable Live Reloading and Hot Reloading in the simulator. Shadow-cljs included it's own {:dev/after-load true} mechanism for live-reloading, which will preserve app state (for example if you are using re-frame).

Android

yarn app:android

iOS on MacOS

Open XCode IOS simulator folowed by:

yarn app:ios

iOS on Linux

Please read an accompanying blog post: https://www.blog.nodrama.io/react-native-xcode-linux/

You can’t perform that action at this time.