workaround for https://github.com/drapanjanas/re-natal/issues/32
Former-commit-id: 662c6c2eab
This commit is contained in:
parent
c7b3564a29
commit
ab11da3c90
|
@ -1,6 +1,6 @@
|
|||
(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]
|
||||
(js/React.createElement js/InvertibleScrollView
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
(ns syng-im.components.react
|
||||
(: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 navigator (r/adapt-react-class (.-Navigator js/React)))
|
||||
|
@ -15,4 +15,4 @@
|
|||
|
||||
(def platform (.. js/React -Platform -OS))
|
||||
|
||||
(def android? (= platform "android"))
|
||||
(def android? (= platform "android"))
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
(ns syng-im.components.realm
|
||||
(: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)))
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
[syng-im.handlers]
|
||||
[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 text (r/adapt-react-class (.-Text js/React)))
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
[syng-im.utils.types :refer [to-string]])
|
||||
(:refer-clojure :exclude [exists?]))
|
||||
|
||||
(set! js/Realm (js/require "realm"))
|
||||
(set! js/window.Realm (js/require "realm"))
|
||||
|
||||
(def opts {:schema [{:name "Contact"
|
||||
:properties {:phone-number "string"
|
||||
|
|
Loading…
Reference in New Issue