Fork me on GitHub
#cljsrn
<
2016-02-17
>
jurgen_photek00:02:54

to answer my own question from yesterday... reagent.core/props doesn't work in a react component created via reagent.core/reactify-component ... but otherwise props work the same as with web reagent - ie they are assoc'd to the first arg to a reagent component fn

seantempesta19:02:44

Is there any danger to calling (set! js/React (js/require "react-native”)) multiple times? I can’t seem to move om-next components to separate namespaces unless I have that statement at the top of each namespace.

artemyarulin19:02:30

@seantempesta: well, there should be no problems calling it multiple times, although you create a global here which has to be available across all your modules

seantempesta19:02:03

Oh I see. So my components were probably just loading before that global variable was being set. Any good clojure tricks to ensuring some code is required first?

seantempesta19:02:38

Ah, never mind. I figured it out. I’m just going to have a separate namespace that declares all the react native requires and will list that first in my requires in my core namespace.