Fork me on GitHub
#cljsrn
<
2021-05-16
>
Michael Jung11:05:27

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

Emi Gal13:05:56

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.

❤️ 3
metal 12
Michael Jung18:05:56

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.

dnolen20:05:17

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

dnolen20:05:34

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

dnolen20:05:09

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

dnolen20:05:22

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