This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-07
Channels
- # aleph (19)
- # aws (1)
- # beginners (75)
- # boot (28)
- # cider (1)
- # cljs-dev (12)
- # cljsrn (20)
- # clojure (350)
- # clojure-argentina (1)
- # clojure-chicago (2)
- # clojure-dev (2)
- # clojure-russia (5)
- # clojure-spec (2)
- # clojure-uk (14)
- # clojure-ukraine (3)
- # clojurescript (68)
- # component (87)
- # core-async (25)
- # core-logic (13)
- # cursive (4)
- # data-science (72)
- # datascript (59)
- # datomic (15)
- # defnpodcast (7)
- # emacs (33)
- # hoplon (5)
- # immutant (73)
- # jobs (21)
- # klipse (6)
- # lumo (14)
- # off-topic (26)
- # om (23)
- # onyx (6)
- # parinfer (37)
- # protorepl (4)
- # re-frame (13)
- # ring (2)
- # rum (3)
- # spacemacs (2)
- # specter (22)
- # sql (47)
- # uncomplicate (10)
- # unrepl (79)
- # untangled (66)
- # vim (47)
- # yada (17)
has anyone had any success using react native native animations from clojurescript?
how do you set it up?
I keep hitting Cannot add property _tracking, object is not extensible
I make an animated value (let [opacity (new rn/animated-value 0))
which seems to go ok
but (.start (.timing rn/animated opacity #js {:useNativeDriver true, :toValue 1, :duration 1000}))
seems to make it unhappy
I use:
(def animated (.-Animated react-native))
(def animated-view
(r/adapt-react-class (.-View animated)))
ah sorry yeah rn/animated is (.-Animated react-native)
ah do I need to use animated-view
Awesome!
It worked!!!
thanks 🙂 🎉
I was just using a normal view
with an animated value