Fork me on GitHub

@thheller yes, haul is a very interesting new development!


For those using reagent or re-frame, what are the benefits/drawbacks of using the [:> View...] syntax where View is a direct js require, versus [view ...] where view is a reagent adapter as in (def view (r/adapt-react-class (.-View ReactNative))) ?


@gphilipp: I’ve been doing that in case I need greater control when interacting with components. Also, I like how I can tell at a glance if the component I’m working with is a normal react component or a reagent one. A potential downside could be the extra time interpreting the symbol, but I can’t imagine it’s too costly?


Hey guys. @tiensonqin asked me to take over managing his exponent libraries since he doesn’t have the time to manage them anymore. So hit me up if you have questions, suggestions or concerns. And let’s all take a moment to thank @tiensonqin on his excellent library! 🙂


@seantempesta That’s nice. I’ve done a repo myself where I store every tip I stumbled upon since joining this channel including some quotes from you guys. It might be useful both for newcomers and advanced users as well:


@seantempesta do you know how to customize the header from the screen ? Basically, replicate this example from the react-navigation doc:


@gphilipp: So, you’ve got two options. You can statically assign navigationOptions or you can use a function and dynamically return the navigationOptions. Here are some examples from the login screen in my re-frame example:

(def static-navigationOptions {:headerTitle "Login"
                               :headerRight (fn []
                                              [:> Button {:title   "Sign In"
                                                          :onPress #(dispatch [:login])}])})

(defn dynamic-navigationOptions [{:keys [navigation] :as props}]
  (let [navigate (:navigate navigation)]
    {:headerTitle "Login"
     :headerRight (fn []
                    [:> Button {:title   "Sign In"
                                :onPress #(navigate "Loading")}])}))


ah yeah, perfect thx


np. I’ll update my example to include both for future reference.


@gphilipp : You’ve been quite dilligent about collecting cljsrn info! I remember quite a few of those conversations. 🙂


Keep up the good work.