Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

iOS and Android release versions crash

Aperta
#258 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
javascript, react-native
Ambito
mobile

Direzione di ricerca

Start with the reported babel.config.js plugins and the worklet function shown in the issue, then reproduce the failure in an iOS or Android release build using React Native 0.78. Check why the assembled function lacks the expected worklet properties; done means the release build assembles and the function executes without the reported error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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]
Lingua principale
C++
Stelle
791
Fork
65
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di margelo/react-native-worklets-core

Tutte le issue di margelo/react-native-worklets-core

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.