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
2021-05-14T00:57:56.368900Z

Was wondering if someone could help me elucidate a mystery. I have a react native app that leverages shadow-cljs + expo. It's a re-frame / reagent / react native app. My components render correctly when I run the app in the browser, but I get a blank screen (and no errors) in the iOS simulator. Any ideas on what I might be doing wrong?

dotemacs 2021-05-14T08:08:58.369900Z

It could be an issue that is just style related and that it doesn’t show up correctly on the simulator. Maybe try to have just a simple component like Text and see if that renders OK first.

raspasov 2021-05-14T10:50:48.370100Z

That is strange. When I run into super weird behavior like that, I go back to “first principles”. Comment out all your code and try to render just one element in the simulator. Does that work?

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-14T01:20:52.369400Z

Fast Refresh is Disabled, btw.

pez 2021-05-14T06:09:04.369600Z

Does the debugger have any messages that could give you a clue? What do you see in the inspector? I see the word “Modal” there as well. Is it a React Native Modal? They are great, but can be a bit tricky to get in control of.

dotemacs 2021-05-14T08:08:58.369900Z

It could be an issue that is just style related and that it doesn’t show up correctly on the simulator. Maybe try to have just a simple component like Text and see if that renders OK first.

raspasov 2021-05-14T10:50:48.370100Z

That is strange. When I run into super weird behavior like that, I go back to “first principles”. Comment out all your code and try to render just one element in the simulator. Does that work?