Fork me on GitHub
#cljsrn
<
2021-01-21
>
zendevil.eth12:01:17

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]))}]])]])

zendevil.eth12:01:55

(defn init []
  (dispatch [:register-db])
  (render-root "Humboi" (r/as-element [root-comp])))

zendevil.eth12:01:58

how to fix this

zendevil.eth12:01:13

removing SafeAreaView fixed the problem!