The app crashes when I launch it. According to Xcode, the issue comes from the file WorkletsCache.cpp line 22 :
std::shared_ptr<jsi::Function> WorkletsCache::getFunction(jsi::Runtime &rt, std::shared_ptr<FrozenObject> frozenObj) {
long long workletHash = frozenObj->map["__workletHash"]->numberValue;
if (worklets.count(workletHash) == 0) {
jsi::Function fun = function(rt, frozenObj->map["asString"]->stringValue);
std::shared_ptr<jsi::Function> funPtr(new jsi::Function(std::move(fun)));
worklets[workletHash] = funPtr;
}
return worklets[workletHash];
}
Second line :
long long workletHash = frozenObj->map["__workletHash"]->numberValue; // Thread1: EXC_BAD_ACCESS (code=1 address=0x20)
Make sure to clear the cache of metro. Seems like it doesn't use the latest version of the babel plugin.
Yes you鈥檙e right I got it working after that.
Most helpful comment
Make sure to clear the cache of metro. Seems like it doesn't use the latest version of the babel plugin.