move js/React to cljsjs.react.cljs
This commit is contained in:
parent
c8d0f590c2
commit
f30248e7fe
|
@ -1 +1,4 @@
|
|||
(ns cljsjs.react)
|
||||
|
||||
(when (exists? js/window)
|
||||
(set! js/window.React (js/require "react-native")))
|
||||
|
|
|
@ -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))}
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue