react-native-multithreading
react-native-multithreading copied to clipboard
Added a bunch of new stuff
Hey! I know you haven't been working on this actively but I thought of takings some time to up a few things. Here's the list:
- Updated the
Schedulersimilar toreact-native-vision-cameraso now it creates it's ownScheduler. - Added support for loading JS modules! Basically you can drop a module file in app
assetsfolder & it will be loaded into the worker thread. For example loading ahtml parseror any other such library for doing expensive work on the worker & returning the result. - Updated the library to support latest react native version
- Added the ability to register native JSI plugins with the worker. This can be further expanded to enable access to all react native modules through a custom bridge implementation.
- Added
evalsupport. - Lazily install JSI bindings with
installmethod.
Hey Ammar! Wow, this is absolutely incredible! Thank you so much for your work.
Since this is quite a big PR, do you maybe have me on Discord? We could go over some things in DM more quickly - but on the surface everything looks really great!