All Projects → thheller → reagent-react-native

thheller / reagent-react-native

Licence: other
Example App using reagent with react-native via shadow-cljs

Programming Languages

java
68154 projects - #9 most used programming language
objective c
16641 projects - #2 most used programming language
clojure
4091 projects
ruby
36898 projects - #4 most used programming language
Starlark
911 projects
javascript
184084 projects - #8 most used programming language
$ npm install && cd react-native && yarn install
$ shadow-cljs watch app

;; wait for first compile to finish or metro gets confused
$ cd react-native

$ npm start
;; and
$ npm run android

;; production build
$ shadow-cljs release app

;; Create Android release
$ cd react-native/android
$ ./gradlew assembleRelease
;; APK should appear at android/app/build/outputs/apk/release
;; installs in Android as "AwesomeProject"
$ adb install -r react-native/android/app/build/outputs/apk/release/app-release.apk

Notes

The react-native folder was generated by calling react-native init AwesomeProject and renaming the folder.

The :app build will create an react-native/app/index.js. In release mode that is the only file needed. In dev mode the app directory will contain many more .js files.

:init-fn is called after all files are loaded and in the case of expo must render something synchronously as it will otherwise complain about a missing root component.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].