Fork me on GitHub
#cljsrn
<
2016-11-08
>
harrybin01:11:01

@keatondunsford I tend to keep the app and backend sides as completely separate projects because they tend to share few things. Thus using re-natal or boot-react-native to create an app project and then use whichever Clojure web-app/api template takes your fancy for the backend.

tiensonqin03:11:23

For generating externs for google closure advanced compilation, I find an actually pretty old idea from https://gist.github.com/Chouser/5796967, make some changes to the gist, now it works for some react native apps of mine. https://github.com/tiensonqin/exponent-cljs-template/blob/master/resources/leiningen/new/exponent/env/dev/externs.clj

acrognale04:11:23

Is there a work around for accessing refs with react native? I.e. I need to access a ref to use onRightButtonPress to push a component onto the NavigatorIOS component — but refs aren’t supported in Reagent

tiensonqin04:11:06

@acrognale I remember refs works for me in Reagent on RN, not in front of computer, will check it later.

acrognale04:11:52

@tiensonqin I actually ended up finding an example (https://gist.github.com/pesterhazy/4d9df2edc303e5706d547aeabe0e17e1) which was effectively what I was trying to do, guess I should’ve looked at more google results!

tiensonqin06:11:18

@acrognale Glad you find the solution.

pesterhazy08:11:04

@acrognale 👍 that's exactly what I use refs for