Former-commit-id: 662c6c2eab
This commit is contained in:
michaelr 2016-03-28 19:17:02 +03:00
parent c7b3564a29
commit ab11da3c90
5 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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"))

View File

@ -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)))

View File

@ -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)))

View File

@ -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"