https://github.com/thheller/fulcro-expo
test using fulcro with expo/react-native
https://github.com/thheller/fulcro-expo
Last synced: 11 months ago
JSON representation
test using fulcro with expo/react-native
- Host: GitHub
- URL: https://github.com/thheller/fulcro-expo
- Owner: thheller
- Created: 2019-02-20T23:05:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-26T11:59:52.000Z (about 7 years ago)
- Last Synced: 2025-04-02T11:51:26.729Z (about 1 year ago)
- Language: Clojure
- Size: 172 KB
- Stars: 15
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
$ yarn
$ shadow-cljs watch app
;; wait for first compile to finish or expo gets confused
$ yarn start
;; production build
$ shadow-cljs release app
;; no idea what to do for expo
```
## Notes
The `:app` build will create an `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. The `shadow.expo/render-root` takes care of registration and setup.
You should disable the `expo` live reload stuff and let `shadow-cljs` handle that instead as they will otherwise interfere with each other.
Source maps don't seem to work properly. `metro` propably doesn't read input source maps when converting sources as things are correctly mapped to the source .js files but not their sources.
Initial load in dev is quite slow since `metro` processes the generated `.js` files.