This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-14
Channels
- # announcements (13)
- # aws (2)
- # babashka (17)
- # beginners (80)
- # biff (10)
- # cljs-dev (51)
- # cljsrn (6)
- # clojure (42)
- # clojure-australia (9)
- # clojure-boston (2)
- # clojure-europe (17)
- # clojure-sweden (3)
- # clojure-uk (53)
- # clojurescript (44)
- # code-reviews (2)
- # core-async (5)
- # cryogen (3)
- # cursive (32)
- # datahike (1)
- # datomic (11)
- # events (1)
- # fulcro (22)
- # helix (3)
- # honeysql (3)
- # leiningen (4)
- # lsp (30)
- # luminus (13)
- # malli (5)
- # off-topic (115)
- # other-languages (5)
- # pathom (10)
- # polylith (23)
- # re-frame (24)
- # reagent (10)
- # releases (2)
- # shadow-cljs (124)
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?
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.
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.
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?
Thanks for “first principles” recommendation @U050KSS8M. 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.