assign global React variable to via window, fixes #32

direct assignment does not work anymore
This commit is contained in:
Artur Girenko 2016-03-27 18:45:07 +02:00
parent 0de4553c25
commit bc7b661581
2 changed files with 2 additions and 2 deletions

View File

@ -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"))

View File

@ -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)))