I have the following code as my root component. I’m using react navigation, but I’m seeing a blank screen:
(defn root-comp []
[:> NavigationContainer
[:> SafeAreaView
(let [Tab (createBottomTabNavigator)]
[:> (.-Navigator Tab)
[:> (.-Screen Tab)
{:key :home
:name "Home"
:component (fn [] (r/as-element [home-container]))}]
[:> (.-Screen Tab)
{:key :upload
:name "Upload"
:component (fn [] (r/as-element [sample-comp]))}]])]])
(defn init []
(dispatch [:register-db])
(render-root "Humboi" (r/as-element [root-comp])))
how to fix this
removing SafeAreaView fixed the problem!