Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can you use React Native for the UI thread and talk to another thread to get data or perform long running calculations?


Yes, I do this in my app. It's well-supported by the platform and quite easy -- there are built-in primitives to call a native function from javascript that returns a promise, which can then be fulfilled/returned asynchronously on the native side once your long-running calculation or transfer is finished.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: