Fork me on GitHub
#cljsrn
<
2015-11-15
>
johanatan09:11:12

What's the equivalent of this JSX using our programmatic/direct invocation style of createElement? <View style={[styles.base, this.state.active && styles.active]} />

johanatan09:11:44

I have a textinput that i'd like to have a different borderColor when its text contents are existent

johanatan09:11:52

i.e., a style computed from state

iamjarvo18:11:39

what’s the ideal way to get props automatically passed in from react native? using om.next

johanatan19:11:35

@iamjarvo: automatically passed in to what and from what?

iamjarvo19:11:51

@johanatan: an example would be navigatorios. when navigatorios renders a component it gives it a navigator object. From the react native page ”A navigator is an object of navigation functions that a view can call. It is passed as a prop to any component rendered by NavigatorIOS.” when i log out this I see https://gist.github.com/iamjarvo/c4b05917c3ac8689180e the navigator object is in there. I am assuming i need to write a query to get to it but I have not had success. my solution was basically to pass around the navigator to get access to it

johanatan19:11:50

Mm I see. Btw, do you have any idea on the question I asked?

iamjarvo19:11:09

hrm are you asking for to convert that jsx into om syntax?