我只是想尝试一下react-native。但是,运行脚本“npm run ios”后,我在Xcode的模拟器中收到此错误。
反应本机版本:v0.66.0, 平台:Mac OS Big Sur 11.6.2, 我该如何解决这个问题?
使用命令行安装“@react-native/normalize-color”
npm i @react-native/normalize-color
如果您使用“react-native-maps”,请尝试安装“@react-native/[email protected]”。这对我有用。这可能是因为我们可能使用旧版本的“react-native”,其中包括旧版本的“normalize-color”。
没有什么对我有用, 但这些步骤。