-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
iOS and Android release versions crash when assembling the component where the library is being imported. Does anyone know of alternative libraries for executing JS functions outside the main thread, or if the maintainers are solving this problem?
react native 0.78
latest lib version
bebel.config
module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: ['react-native-reanimated/plugin',"react-native-worklets-core/plugin"]
};
function
const uploadFotosWorklet = worklet(async (fotos, props) => {
'worklet';
/// my code bellow working in dev mode
});
error log
Error: The function "fotosIOSJs1" is not a Worklet!
- Make sure the function "fotosIOSJs1" is decorated with the 'worklet' directive!
- Make sure react-native-worklets-core is installed properly!
- Make sure to add the react-native-worklets-core babel plugin to your babel.config.js!
- Make sure that no other plugin overrides the react-native-worklets-core babel plugin!
Expected "fotosIOSJs1" to contain [__closure, __initData, __workletHash], but "fotosIOSJs1" only has these properties: [__closure, __workletHash, __initData]
Metadata
Metadata
Assignees
Labels
No labels