mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-11 08:07:07 +00:00
workaround for https://github.com/drapanjanas/re-natal/issues/32
This commit is contained in:
parent
8f9ee4ba31
commit
662c6c2eab
@ -1,6 +1,6 @@
|
|||||||
(ns syng-im.components.invertible-scroll-view)
|
(ns syng-im.components.invertible-scroll-view)
|
||||||
|
|
||||||
(set! js/InvertibleScrollView (js/require "react-native-invertible-scroll-view"))
|
(set! js/window.InvertibleScrollView (js/require "react-native-invertible-scroll-view"))
|
||||||
|
|
||||||
(defn invertible-scroll-view [props]
|
(defn invertible-scroll-view [props]
|
||||||
(js/React.createElement js/InvertibleScrollView
|
(js/React.createElement js/InvertibleScrollView
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
(ns syng-im.components.react
|
(ns syng-im.components.react
|
||||||
(:require [reagent.core :as r]))
|
(:require [reagent.core :as r]))
|
||||||
|
|
||||||
(set! js/React (js/require "react-native"))
|
(set! js/window.React (js/require "react-native"))
|
||||||
|
|
||||||
(def app-registry (.-AppRegistry js/React))
|
(def app-registry (.-AppRegistry js/React))
|
||||||
(def navigator (r/adapt-react-class (.-Navigator js/React)))
|
(def navigator (r/adapt-react-class (.-Navigator js/React)))
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
(ns syng-im.components.realm
|
(ns syng-im.components.realm
|
||||||
(:require [reagent.core :as r]))
|
(:require [reagent.core :as r]))
|
||||||
|
|
||||||
(set! js/RealmReactNative (js/require "realm/react-native"))
|
(set! js/window.RealmReactNative (js/require "realm/react-native"))
|
||||||
|
|
||||||
(def list-view (r/adapt-react-class (.-ListView js/RealmReactNative)))
|
(def list-view (r/adapt-react-class (.-ListView js/RealmReactNative)))
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
[syng-im.handlers]
|
[syng-im.handlers]
|
||||||
[syng-im.subs]))
|
[syng-im.subs]))
|
||||||
|
|
||||||
(set! js/React (js/require "react-native"))
|
(set! js/window.React (js/require "react-native"))
|
||||||
|
|
||||||
(def app-registry (.-AppRegistry js/React))
|
(def app-registry (.-AppRegistry js/React))
|
||||||
(def text (r/adapt-react-class (.-Text js/React)))
|
(def text (r/adapt-react-class (.-Text js/React)))
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
[syng-im.utils.types :refer [to-string]])
|
[syng-im.utils.types :refer [to-string]])
|
||||||
(:refer-clojure :exclude [exists?]))
|
(:refer-clojure :exclude [exists?]))
|
||||||
|
|
||||||
(set! js/Realm (js/require "realm"))
|
(set! js/window.Realm (js/require "realm"))
|
||||||
|
|
||||||
(def opts {:schema [{:name "Contact"
|
(def opts {:schema [{:name "Contact"
|
||||||
:properties {:phone-number "string"
|
:properties {:phone-number "string"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user