Fork me on GitHub
Oliver George00:06:18

I've create a set of reusable wrappers for some RN libs we use.

👍 28
Oliver George00:06:41

With Krell you can include one of these deps then use clj -m cljs.main --install-deps to have the necessary node deps added to package.json

Oliver George00:06:10

Principles were... 1. No need for direct interop outside the api. (so your logic shouldn't end up littered with #js .- or even .) 2. Minimise opinions 3. Aim for idiomatic CLJS usage 4. New ns for breaking changes 5. Include comments allowing REPL based checks of core functionality

Oliver George00:06:25

With RN62 the setup side of using RN libs is greatly improved.

Oliver George00:06:39

A set of these types of interop libs could reduce friction for CLJSRN users.


has anyone made work with react native? i am looking at it and it seems that cljs-ajax is the problem how do i got about this?


You tried to use it and didn't work? Because I'm using without any trouble right now


I still defined my own fx (as in the article dotemacs sent) in case cljs-ajax breaks in some edge case, then I can modify the code in only one place.


yep i tried and it didn't work i was getting error related to xhrio but can't find it now to share with u i've implemented custom fx and it's working great.


Now that I think about it I had to do But I still did not test in a production release. Glad to hear you solved it :thumbsup:


oh this is a good find i will see if i have some time bit later to experiment with it maybe this fixes the issue thanks for the link


oh this just made my day thank you so much