react-native-worklets-core
react-native-worklets-core copied to clipboard
🧵 A library to run JS functions ("Worklets") on separate Threads
Often times this library is used next to reanimated. In this case the worklets are transpiled by the reanimated babel plugin. The reanimated babel plugin uses `initData.sourceMap` instead of RNWC...
when use the code such as below in ... Thread t1([&runTime,argument,resolver](){ argument.asObject(runtime).asFunction(runtime).call(runtime,nullptr,0)// this line will crash }).deteach() Is there any other approach to fix the crash ?
RNWC is currently struggling with recursive values. This issue was discovered when we passed a workout function directly to an `onPress` prop, which has an `event` argument, which is recursive....
cc @hannojg
I have tried testing this library with code similar to the example code from this repository. I built a react native functional component that uses the useWorklet hook in order...
This problem is related to [this](https://github.com/mrousavy/react-native-vision-camera/issues/2589) issue. If I try to use `runAsync` method (wich uses `Worklets.createContext` method) my app crash while running compiled apk or running it in expo...
The added `check_jsi_object_is_returned_from_worklet` test passes to show that the correct object is returned. It might be redundant compared the current main, I have not done an exhaustive check there. However,...
CMake Error
**Issue** I did all the operations like clearing the cache. **Device:** - Device: emulator - OS: android **`package.json` file:** ``` { "dependencies": { "react-native-vision-camera": "^3.9.2", "react-native-vision-camera-face-detector": "^1.6.3", "react-native-worklets-core": "^1.0.0", }...
When using nested `runAsync` calls like so: ```ts const context = Worklets.defaultContext context.runAsync(() => { 'worklet' console.log('first!') Worklets.runOnJS(() => { 'worklet' console.log('second!') try { const worklet = () => {...
I can't create a shared value that contains an object and then update the object's fields later. The `get_set_object_value` test in `sharedvalue-tests.ts` describes exactly what I am trying to do,...