This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-06
Channels
- # announcements (2)
- # beginners (97)
- # boot (3)
- # cider (23)
- # clara (9)
- # cljs-dev (40)
- # cljsrn (6)
- # clojure (107)
- # clojure-finland (2)
- # clojure-india (3)
- # clojure-italy (15)
- # clojure-nl (2)
- # clojure-spec (107)
- # clojure-uk (91)
- # clojurescript (28)
- # cursive (10)
- # data-science (4)
- # datomic (26)
- # duct (1)
- # emacs (6)
- # events (9)
- # figwheel-main (4)
- # fulcro (4)
- # graphql (2)
- # jobs (3)
- # jobs-discuss (12)
- # juxt (7)
- # kaocha (6)
- # off-topic (8)
- # onyx (2)
- # parinfer (13)
- # pedestal (32)
- # portkey (1)
- # re-frame (58)
- # reagent (17)
- # reitit (21)
- # ring-swagger (3)
- # shadow-cljs (35)
- # spacemacs (1)
- # tools-deps (33)
- # yada (13)
@danieleneal From the transit README: “NOTE: Transit is a work in progress and may evolve based on feedback. As a result, while Transit is a great option for transferring data between applications, it should not yet be used for storing data durably over time.”
ah thanks both 🙂
Hi folks! Can someone please lead me in the right direction? I've been struggling with a way to fetch root component's initialProps being passed from the native side, as described in https://facebook.github.io/react-native/docs/communication-ios#passing-properties-from-native-to-react-native. So i'm invoking
(.registerComponent react/app-registry "AppName" #(reagent/reactify-component app-root))
where app-root is some fn, and am also passing initialProps to RN's AppRegistry.runApplication. How do i fetch them on CLJS side?@siphiuel I think those props will be available inside app-root
with (r/props (r/current-component))
@joshmiller thanks! Just tried your suggestion in my render function, but it still returns nil
. weird.
(defn app-root [props]
(r/create-class
{:component-did-mount (fn [this] ...)
:reagent-render (fn [props]
(log/debug (r/props (r/current-component)))
...)}))