This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-24
Channels
does anyone have an example of how to get an external component working with om next and re-natal?
I've run re-natal use-component
and etc. and my code compiles but I just don't see the component anywhere
the component is this one: https://github.com/apptailor/react-native-google-signin
(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")}))))