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,13 +2,14 @@
|
|||
(: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
|
||||
text
|
||||
image
|
||||
navigator
|
||||
toolbar-android
|
||||
drawer-layout-android
|
||||
touchable-opacity]]
|
||||
[status-im.components.react :refer [react
|
||||
view
|
||||
text
|
||||
image
|
||||
navigator
|
||||
toolbar-android
|
||||
drawer-layout-android
|
||||
touchable-opacity]]
|
||||
[status-im.resources :as res]
|
||||
[status-im.components.drawer.styles :as st]
|
||||
[status-im.i18n :refer [label]]))
|
||||
|
@ -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]
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
(:require-macros [status-im.utils.views :refer [defview]])
|
||||
(:require [re-frame.core :refer [subscribe dispatch]]
|
||||
[status-im.components.react :refer [view
|
||||
text
|
||||
image
|
||||
icon
|
||||
scroll-view
|
||||
touchable-highlight
|
||||
touchable-opacity]]
|
||||
text
|
||||
image
|
||||
icon
|
||||
scroll-view
|
||||
touchable-highlight
|
||||
touchable-opacity]]
|
||||
[status-im.components.chat-icon.screen :refer [profile-icon
|
||||
my-profile-icon]]
|
||||
my-profile-icon]]
|
||||
[status-im.profile.styles :as st]
|
||||
[status-im.i18n :refer [label]]))
|
||||
|
||||
|
@ -60,11 +60,11 @@
|
|||
[text {:style st/report-user-text} (label :t/report-user)]]]]])
|
||||
|
||||
(defview my-profile []
|
||||
[username [:get :username]
|
||||
photo-path [:get :photo-path]
|
||||
[username [:get :username]
|
||||
photo-path [:get :photo-path]
|
||||
phone-number [:get :phone-number]
|
||||
email [:get :email]
|
||||
status [:get :status]]
|
||||
email [:get :email]
|
||||
status [:get :status]]
|
||||
[scroll-view {:style st/profile}
|
||||
[touchable-highlight {:style st/back-btn-touchable
|
||||
:on-press #(dispatch [:navigate-back])}
|
||||
|
|
Loading…
Reference in New Issue