News for hackers. Stuff that matters.
Re:What I wish I knew about React by LinguaBrowse on Wednesday April 29, 2020 @04:56PM (#23024184)
> If you are constantly passing large amounts of data between the JS thread and the Native thread or constantly changing the layout (which passes data between the threads) you are doing it wrong.

I’m working on an alternative to React Native that does exactly this, and it works absolutely fine: React NativeScript.

In NativeScript (and thus also React NativeScript), the JS logic and the UI both execute on the UI thread. Furthermore, you can synchronously access any native API without needing to set up bridging code; bindings to the whole Obj-C/Java runtimes are ready-generated.

https://github.com/shirakaba/react-nativescript

https://react-nativescript.netlify.com/

Re:What I wish I knew about React by iainmerrick on Thursday April 30, 2020 @07:46AM (#23029815)
Sounds great! After using RN for a while, that’s exactly how I think it should have been designed in the first place. Good luck!
Re:What I wish I knew about React by partyboat1586 on Wednesday April 29, 2020 @07:31PM (#23025835)
Sweet, no more bridge bandwidth issues. I'll check it out.