This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-08
Channels
- # aws (4)
- # beginners (81)
- # boot (65)
- # cljs-dev (10)
- # cljsjs (1)
- # cljsrn (12)
- # clojure (26)
- # clojure-austin (2)
- # clojure-dusseldorf (2)
- # clojure-russia (123)
- # clojure-spec (23)
- # clojure-uk (12)
- # clojurescript (36)
- # cursive (11)
- # datomic (39)
- # events (1)
- # hoplon (25)
- # incanter (4)
- # leiningen (3)
- # off-topic (5)
- # om (31)
- # re-frame (24)
- # reagent (13)
- # ring-swagger (2)
- # rum (10)
- # untangled (3)
- # yada (10)
Is there documentation somewheere how to use a regular react component with Rum?
Trying to figure out how to use https://github.com/joshwcomeau/react-flip-move
(rum/defc flipmove [{:keys [children]}]
(js/React.createElement js/FlipMove #js {:children (clj->js children)
:easing "cubic-bezier(0, 0.7, 0.8, 0.1)"}))
not so hard after all
@martinklepsch I have this in my RN code:
(defn create-element [rn-comp opts & children]
(apply js/React.createElement rn-comp (clj->js opts) children))
(def text (partial create-element (.-Text ReactNative)))
;then later inside some view:
(text {:style {:fontSize 15 :paddingTop 10}} title)
Ah, that’s cool, thanks!