If I understand correctly, index.js should be replaced. But this doesn’t seem to happen for me…
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.
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.@laynor you cannot dynamically add Node deps because of the way node libs work
React Native is not Node - it must been known by Metro
if your Node deps change you do need a REPL restart at the moment
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