move js/React to cljsjs.react.cljs

This commit is contained in:
Roman Volosovskyi 2016-05-30 11:01:57 +03:00
parent c8d0f590c2
commit f30248e7fe
4 changed files with 24 additions and 23 deletions

View File

@ -1 +1,4 @@
(ns cljsjs.react)
(when (exists? js/window)
(set! js/window.React (js/require "react-native")))

View File

@ -2,7 +2,8 @@
(:require [clojure.string :as s]
[re-frame.core :refer [subscribe dispatch dispatch-sync]]
[reagent.core :as r]
[status-im.components.react :as re :refer [view
[status-im.components.react :refer [react
view
text
image
navigator
@ -71,7 +72,7 @@
(defn drawer-view [items]
[drawer-layout-android {:drawerWidth 260
:drawerPosition re/react.DrawerLayoutAndroild.positions.Left
:drawerPosition js/React.DrawerLayoutAndroid.positions.Left
:render-navigation-view #(r/as-element [drawer-menu])
:ref (fn [drawer]
(reset! drawer-atom drawer))}

View File

@ -3,9 +3,6 @@
[status-im.components.styles :as st]
[status-im.utils.utils :as u]))
(when (exists? js/window)
(set! js/window.React (js/require "react-native")))
(def react (u/require "react-native"))
(defn get-react-property [name]