Merge branch 'tmclane-master'
This commit is contained in:
commit
4b2f82d2a4
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "re-natal",
|
"name": "re-natal",
|
||||||
"version": "0.3.5",
|
"version": "0.3.6",
|
||||||
"description": "Bootstrap ClojureScript React Native apps with reagent and re-frame for iOS and Android",
|
"description": "Bootstrap ClojureScript React Native apps with reagent and re-frame for iOS and Android",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": "Artur Girenko <a.girenko@gmail.com>",
|
"author": "Artur Girenko <a.girenko@gmail.com>",
|
||||||
|
|
|
@ -30,7 +30,7 @@ ipAddressRx = /^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/i
|
||||||
figwheelUrlRx = /ws:\/\/[0-9a-zA-Z\.]*:/g
|
figwheelUrlRx = /ws:\/\/[0-9a-zA-Z\.]*:/g
|
||||||
appDelegateRx = /http:\/\/[^:]+/g
|
appDelegateRx = /http:\/\/[^:]+/g
|
||||||
debugHostRx = /host\s+=\s+@".*";/g
|
debugHostRx = /host\s+=\s+@".*";/g
|
||||||
rnVersion = '0.41.1'
|
rnVersion = '0.42.0'
|
||||||
rnPackagerPort = 8081
|
rnPackagerPort = 8081
|
||||||
process.title = 're-natal'
|
process.title = 're-natal'
|
||||||
interfaceConf =
|
interfaceConf =
|
||||||
|
@ -65,7 +65,7 @@ interfaceConf =
|
||||||
android: ["core.cljs"]
|
android: ["core.cljs"]
|
||||||
common: ["state.cljs"]
|
common: ["state.cljs"]
|
||||||
other: [["support.cljs","re_natal/support.cljs"]]
|
other: [["support.cljs","re_natal/support.cljs"]]
|
||||||
deps: ['[org.omcljs/om "1.0.0-alpha41" :exclusions [cljsjs/react cljsjs/react-dom]]']
|
deps: ['[org.omcljs/om "1.0.0-alpha48" :exclusions [cljsjs/react cljsjs/react-dom]]']
|
||||||
shims: ["cljsjs.react", "cljsjs.react.dom"]
|
shims: ["cljsjs.react", "cljsjs.react.dom"]
|
||||||
sampleCommandNs: '(in-ns \'$PROJECT_NAME_HYPHENATED$.state)'
|
sampleCommandNs: '(in-ns \'$PROJECT_NAME_HYPHENATED$.state)'
|
||||||
sampleCommand: '(swap! app-state assoc :app/msg "Hello Native World!")'
|
sampleCommand: '(swap! app-state assoc :app/msg "Hello Native World!")'
|
||||||
|
@ -76,7 +76,7 @@ interfaceConf =
|
||||||
android: ["core.cljs"]
|
android: ["core.cljs"]
|
||||||
common: []
|
common: []
|
||||||
other: [["sablono_compiler.clj","sablono/compiler.clj"],["support.cljs","re_natal/support.cljs"]]
|
other: [["sablono_compiler.clj","sablono/compiler.clj"],["support.cljs","re_natal/support.cljs"]]
|
||||||
deps: ['[rum "0.9.1" :exclusions [cljsjs/react cljsjs/react-dom sablono]]']
|
deps: ['[rum "0.10.8" :exclusions [cljsjs/react cljsjs/react-dom sablono]]']
|
||||||
shims: ["cljsjs.react", "cljsjs.react.dom", "sablono.core"]
|
shims: ["cljsjs.react", "cljsjs.react.dom", "sablono.core"]
|
||||||
sampleCommandNs: '(in-ns \'$PROJECT_NAME_HYPHENATED$.ios.core)'
|
sampleCommandNs: '(in-ns \'$PROJECT_NAME_HYPHENATED$.ios.core)'
|
||||||
sampleCommand: '(swap! app-state assoc :greeting "Hello Clojure in iOS and Android with Rum!")'
|
sampleCommand: '(swap! app-state assoc :greeting "Hello Clojure in iOS and Android with Rum!")'
|
||||||
|
|
|
@ -22,9 +22,9 @@
|
||||||
|
|
||||||
(defonce app-state (atom {:greeting "Hello Clojure in iOS and Android!"}))
|
(defonce app-state (atom {:greeting "Hello Clojure in iOS and Android!"}))
|
||||||
|
|
||||||
(defc AppRoot < rum/cursored-watch [state]
|
(defc AppRoot < rum/reactive [state]
|
||||||
(view {:style {:flexDirection "column" :margin 40 :alignItems "center"}}
|
(view {:style {:flexDirection "column" :margin 40 :alignItems "center"}}
|
||||||
(text {:style {:fontSize 30 :fontWeight "100" :marginBottom 20 :textAlign "center"}} (:greeting @state))
|
(text {:style {:fontSize 30 :fontWeight "100" :marginBottom 20 :textAlign "center"}} (:greeting (rum/react state)))
|
||||||
(image {:source logo-img
|
(image {:source logo-img
|
||||||
:style {:width 80 :height 80 :marginBottom 30}})
|
:style {:width 80 :height 80 :marginBottom 30}})
|
||||||
(touchable-highlight {:style {:backgroundColor "#999" :padding 10 :borderRadius 5}
|
(touchable-highlight {:style {:backgroundColor "#999" :padding 10 :borderRadius 5}
|
||||||
|
|
Loading…
Reference in New Issue