Fork me on GitHub
#cljsrn
<
2018-11-06
>
mfikes00:11:00

@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.”

vikeri09:11:17

Yep, that's what I was referring to thanks @mfikes

danielneal10:11:14

ah thanks both 🙂

siphiuel20:11:15

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?

joshmiller21:11:13

@siphiuel I think those props will be available inside app-root with (r/props (r/current-component))

siphiuel21:11:57

@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)))
                                   ...)}))