【发布时间】:2022-01-07 13:59:39
【问题描述】:
我从这个网站得到代码:https://www.google.com/amp/s/aboutreact.com/react-native-login-and-signup/amp/ 请帮帮我enter image description here
【问题讨论】:
标签: javascript ios react-native api mobile
我从这个网站得到代码:https://www.google.com/amp/s/aboutreact.com/react-native-login-and-signup/amp/ 请帮帮我enter image description here
【问题讨论】:
标签: javascript ios react-native api mobile
您编写的代码或依赖库都使用 React 本机 Reanimated 2 工作集。
在您的项目结构中,查看名为babel.config.js 的文件并添加以下代码:
module.exports = {
presets: ['module: metro-react-native-babel-preset'],
plugins: [
'react-native-reanimated/plugin'
]
};
【讨论】:
你可以先试试这个方法:
npx
npx react-native start --reset-cache
纱线
yarn start --reset-cache
希望这个方法能解决你的问题
【讨论】: