Skip to content

Commit

Permalink
assign global React variable to via window, fixes #32
Browse files Browse the repository at this point in the history
direct assignment does not work anymore
  • Loading branch information
drapanjanas committed Mar 27, 2016
1 parent 0de4553 commit bc7b661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resources/cljs-om-next/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down
2 changes: 1 addition & 1 deletion resources/cljs-reagent/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit bc7b661

Please sign in to comment.