boot-react-native icon indicating copy to clipboard operation
boot-react-native copied to clipboard

Get RN 0.39 working

Open vikeri opened this issue 7 years ago • 5 comments

I very crudely rewrote the goog.require in all the js-files to require and changed the output folder to cljs_output instead. Not very pretty but I sorted out the performance hit I initially got so now it shouldn't be too bad.

Fixes https://github.com/mjmeintjes/boot-react-native/issues/78

vikeri avatar Dec 29 '16 09:12 vikeri

@vikeri is this approach still worth looking into? Or have you moved on to something else?

theronic avatar Feb 04 '18 10:02 theronic

@theronic I'm not @vikeri, but I'm using re-natal these days, which IMO is based on the better approach (using figwheel for much of the work). Boot-react-native needs significant work to be fixed, and even then it may not be much better than re-natal.

pesterhazy avatar Feb 04 '18 15:02 pesterhazy

Ah. I hope that development using boot will continue. Whenever I pick up Leiningen, I run into opaque errors and caching problems

Can you outline some of the work that needs to be done?

theronic avatar Feb 05 '18 08:02 theronic

@theronic Unfortunately I've also transitioned to using figwheel because of faster compilation speed and better REPL + reload experience.

vikeri avatar Feb 05 '18 15:02 vikeri

@theronic, briefly:

Re-natal has the better approach. It serves, via RN packager, only a small stub, including only pointers JS deps and the figwheel bridge.

All the rest is done via Figwheel. No cljs code AFAIK is transferred via the RN packager in re-natal. The big advantage is that everything works just like other CLJS repls: you reduce the surface of potential problems.

Boot has its own equivalents to Figwheel. The approach I'd take, if I were to rewrite BRN, would be to build on these.

It would certainly be nice to have a mature Boot-based CLJSRN solution. However, there's also value in focussing development on re-natal, which is a lot more mature. I've since come to the conclusion that it's better not to divide the (already small) community.

Another thing to try would be to look at the specific shortcomings of re-natal and to see where it could be improved upon. Caching is one, but you'll need to deal with caching in some way anyway. And Boot is not as fast precisely because it caches less so there'a another trade-off here.

If you do take a look at bringing BRN up to speed, feel free to ask specific questions, I'll do my best to answer.

pesterhazy avatar Feb 05 '18 16:02 pesterhazy