【发布时间】:2022-11-10 12:49:18
【问题描述】:
【问题讨论】:
-
如果我的回答是正确的,你能接受吗?
标签: reactjs react-native expo babeljs metro-bundler
【问题讨论】:
标签: reactjs react-native expo babeljs metro-bundler
将 react-native-reanimated 的 babel 插件添加到您的 babel.config.js 中,如其 official page 所述:
module.exports = {
...
plugins: [
...
'react-native-reanimated/plugin',
],
};
【讨论】:
安装 react native 复活
expo install react-native-reanimated
【讨论】:
这对我们有用
https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/
CAUTION
Reanimated plugin has to be listed last.
【讨论】: