Skip to content

Commit

Permalink
fix Rum template
Browse files Browse the repository at this point in the history
- use recent Rum version 0.11.2
- use create-react-class instead of React.createClass in re-natal.support
  • Loading branch information
drapanjanas committed Mar 4, 2018
1 parent 4630407 commit a27b0d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion re-natal.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ interfaceConf =
sources:
common: []
other: [["sablono_compiler.clj","sablono/compiler.clj"],["support.cljs","re_natal/support.cljs"]]
deps: ['[rum "0.10.8" :exclusions [cljsjs/react cljsjs/react-dom sablono]]']
deps: ['[rum "0.11.2" :exclusions [cljsjs/react cljsjs/react-dom sablono]]']
shims: ["cljsjs.react", "cljsjs.react.dom", "sablono.core"]
sampleCommandNs: '(in-ns \'$PROJECT_NAME_HYPHENATED$.ios.core)'
sampleCommand: '(swap! app-state assoc :greeting "Hello Clojure in iOS and Android with Rum!")'
Expand Down
2 changes: 1 addition & 1 deletion resources/cljs-rum/support.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Helpers and adapters to be able to mount/remount Rum components in a React Native application.")

(def React (js/require "react"))
(def create-class (.-createClass React))
(def create-class (js/require "create-react-class"))
(def create-factory (.-createFactory React))

(defonce root-component (atom nil))
Expand Down

0 comments on commit a27b0d2

Please sign in to comment.