4 ms·
Can you use React Native for the UI thread and talk to another thread to get data or perform long running calculations?
by caleblloyd 10y ago
Can you use React Native for the UI thread and talk to another thread to get data or perform long running calculations?
- kcorbitt 10y agoYes, 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.