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

Added a bunch of new stuff

Open ammarahm-ed opened this issue 3 years ago • 1 comments

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:

  1. Updated the Scheduler similar to react-native-vision-camera so now it creates it's own Scheduler.
  2. Added support for loading JS modules! Basically you can drop a module file in app assets folder & it will be loaded into the worker thread. For example loading a html parser or any other such library for doing expensive work on the worker & returning the result.
  3. Updated the library to support latest react native version
  4. 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.
  5. Added eval support.
  6. Lazily install JSI bindings with install method.

ammarahm-ed avatar Nov 18 '22 05:11 ammarahm-ed

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!

mrousavy avatar Nov 18 '22 09:11 mrousavy