cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
Michael Jung 2021-05-16T11:35:27.382500Z

If I understand correctly, index.js should be replaced. But this doesn’t seem to happen for me…

2021-05-16T13:00:15.382600Z

Thanks for “first principles” recommendation @raspasov. Did that, and it turns out I was using a library (steroid.rn.navigation.core) that had its own reload function (create-navigation-container-reload). That clashed with shadow-cljs’s reload and was messing things up when on the simulator.

1👍
2021-05-16T13:03:56.384900Z

After a few days of figuring out how to easily bootstrap a fully wired react native - expo - shadow-cljs app, I stumbled upon this amazing npm / yarn command: https://www.npmjs.com/package/create-expo-cljs-app by @jgoodhcg. It just works + brings in tailwind css into react native, which makes prototyping a breeze. Hope others find it useful as well.

1❤️4🤘
Michael Jung 2021-05-16T18:03:56.386500Z

For reference: I was able to solve my issue. Instead of directly running

clj -M -m krell.main -co build.edn -c -r
I had to run
clj -M -m krell.main -co build.edn -c
first to get an initial compilation.

dnolen 2021-05-16T20:29:17.387200Z

@laynor you cannot dynamically add Node deps because of the way node libs work

dnolen 2021-05-16T20:29:34.387600Z

React Native is not Node - it must been known by Metro

dnolen 2021-05-16T20:30:09.388200Z

if your Node deps change you do need a REPL restart at the moment

dnolen 2021-05-16T20:31:22.389400Z

this could be improved so at most you need a Metro refresh - but haven't got around to it - mostly because it's really not that big of a deal for actual app dev