react-native-worklets-core icon indicating copy to clipboard operation
react-native-worklets-core copied to clipboard

iOS and Android release versions crash

Open thiagomachado1998 opened this issue 3 months ago • 0 comments

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]

thiagomachado1998 avatar Sep 26 '25 21:09 thiagomachado1998