Fork me on GitHub
#cljsrn
<
2016-04-24
>
frank15:04:56

does anyone have an example of how to get an external component working with om next and re-natal?

frank15:04:04

I've run re-natal use-component and etc. and my code compiles but I just don't see the component anywhere

frank16:04:40

(def GoogleSigninButton (.-GoogleSigninButton (js/require "react-native-google-signin")))

(defui AppRoot
  Object
  (render
   [this]
   (view {:style {:flexDirection "column" :margin 40 :alignItems "center"}}
         (js/React.createElement GoogleSigninButton
                                 #js {:style {:width 48
                                              :height 48}
                                      :size (-> GoogleSigninButton .-Size .-Icon)
                                      :color (-> GoogleSigninButton .-Color .-Dark)
                                      :onPress #(alert "Hi")}))))