📜  error error: reanimated 2 failed to create a worklet,也许你忘了添加reanimated的babel插件? - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:20.410000             🧑  作者: Mango

代码示例2
module.exports = function (api) {
  api.cache(true);
  return {
    presets: ['babel-preset-expo'],
    plugins: ['react-native-reanimated/plugin'],
  };
};