bump rum version to 0.10.8

This commit is contained in:
Travis McLane 2017-03-07 11:18:37 -06:00
parent 7201aeb932
commit 1110e849d7
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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}
@ -37,4 +37,4 @@
(defn init [] (defn init []
(mount-app) (mount-app)
(.registerComponent app-registry "$PROJECT_NAME$" (fn [] root-component-factory))) (.registerComponent app-registry "$PROJECT_NAME$" (fn [] root-component-factory)))