Skip to content

iOS and Android release versions crash #258

Description

@thiagomachado1998

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions