1 react-native 初始化项目后运行run-ios,报错
Error: Problem validating fields in app.json. See https://docs.expo.io/versions/v25.0.0/guides/configuration.html.
21:42:43: • Field: slug - 'slug' should match pattern "^[a-zA-Z0-9\-]+$".
解决办法:
修改app.json,说明slug必须符合正则匹配:^[a-zA-Z0-9-]+$,即由大小写和“-”组成
{
"expo": {
"name": "zzcuti_rn",
"slug": "zzcuti-rn",
"sdkVersion": "25.0.0",
"privacy": "public"
}
}
2 安装react-native-vector-icons后报错,react-native link