Fork me on GitHub
#cljsrn
<
2016-11-10
>
savelichalex06:11:53

@pvinis right) you don't need objc-c-js step) the only think I would like to warn it is about bridge, if you want maximum performance then you need to use Animated API, because they bind directly to view properties

savelichalex06:11:13

another warn is file and properties names, don't use names that start with RTC, use another namespace, don't use properties like margin, font-size and so one, this is cause conflicts and RN overwrite it. Also remember that if you write your file with Manager at the end, then in your code you don't need to write it, i.e file name - MyViewManager in cljs (require-native-component "MyView")

pvinis08:11:36

nice. thanks for the tips. I will try again by first making a library and see how that will work

pvinis08:11:54

but like you see, too many things to remember and take care of

savelichalex10:11:04

@pvinis I think that hardest is create first native module/native view (yes, this is different things) then it will be much easier 🙂

lvh16:11:40

How does using CLJS + ExponentJS compare to re-natal?

lvh16:11:26

looks like exponentJS’s main pitch is “hide react native”, and re-natal is definitely not about hiding react-native 🙂

sineer20:11:36

lvh with re-natal you are in control (that has pros and cons). If you need custom react native modules (ie bluetooth low level stuff java threads in your app) then re-natal is only solution atm I believe...

sineer20:11:43

it's just from what I read yesterday mind you I have not tried exponentJS

sineer20:11:07

I believe having a solution for native modules integration is their (exponentjs) priority atm

sineer20:11:28

re-natal allows me to get down and dirty with react-native which is what I want

lvh20:11:13

yep, that matches my understanding

lvh20:11:19

most of the things I’d be writing involve crypto

lvh20:11:29

so I really want to be able to include a .a/.so/whatever

sineer21:11:32

yep.. expects to spend lots of time figuring out how to do that too 😉

sineer21:11:57

its not so bad.. just it can be tricky there are a few traps still

keithsparkjoy21:11:16

Hi guys - trying to get a navigator working. Starting with the example app that comes with boot-react-native.

keithsparkjoy21:11:18

[navigator {:render-scene (fn [ ] [text "Hi"])}]

keithsparkjoy21:11:29

I figure that’s the simplest possible navigator 🙂

keithsparkjoy21:11:54

However, this leads to a redbox with “Objects are not valid as a react child"