assign global React variable to via window, fixes #32
direct assignment does not work anymore
This commit is contained in:
parent
0de4553c25
commit
bc7b661581
|
@ -5,7 +5,7 @@
|
|||
[re-natal.support :as sup]
|
||||
[$PROJECT_NAME_HYPHENATED$.state :as state]))
|
||||
|
||||
(set! js/React (js/require "react-native"))
|
||||
(set! js/window.React (js/require "react-native"))
|
||||
|
||||
(def app-registry (.-AppRegistry js/React))
|
||||
(def logo-img (js/require "./images/cljs.png"))
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
[$PROJECT_NAME_HYPHENATED$.handlers]
|
||||
[$PROJECT_NAME_HYPHENATED$.subs]))
|
||||
|
||||
(set! js/React (js/require "react-native"))
|
||||
(set! js/window.React (js/require "react-native"))
|
||||
|
||||
(def app-registry (.-AppRegistry js/React))
|
||||
(def text (r/adapt-react-class (.-Text js/React)))
|
||||
|
|
Loading…
Reference in New Issue