Fork me on GitHub
#cljsrn
<
2021-05-08
>
Emi Gal21:05:23

I'm building a react native app using shadow-cljs, expo, re-frame, reagent. Struggling a little bit to make react-navigation work properly, and I was wondering if anyone can point me to best practices on how to implement it in the most idiomatic clojure way?

kennytilton21:05:51

RN relative noob here having a ball with https://github.com/PEZ/rn-rf-shadow, except for one little thing: when I test hot loading by changing the background color to, say, cyan: * the Mac Simulator running an iPhone 12 shows a cyan background for a quarter second; * the background then flips back to the original (white?); * if I now change the source to green, the sim briefly shows green, then reverts to...cyan! Killing Expo and restarting then brings up the sim with a green background, unsurprisingly. Anyone have an idea why the hot reload does not "stick"? This is an M1 Mac on Big Sur, with Expo updated. ps. On a real Android phone (LG Stylo 6), the hot reload "sticks".

kennytilton21:05:18

Running the web page sim also holds the hot reload (instead of flipping back to the prior version.) Gotta think this is an Expo issue, but if anyone has any thoughts on getting the sim to work much appreciated. 🙏

thheller21:05:31

just a guess but sounds like you still have the react-native or expo hot reload enabled. need to turn that off, otherwise you'll have them compete with the hot-reload shadow-cljs does

☝️ 6
kennytilton23:05:39

Perfect. Thx! I missed that bit in the doc.