更新Xcode11之后 启动RN项目 报错[RCTAppState getCurrentAppState:error:]

1.打开/node_modules/react-native/React/Base/RCTModuleMethod.mm 文件
2.找到RCTParseUnused 方法 将其中的
return RCTReadString(input, "__unused") ||
RCTReadString(input, "attribute((unused))");
修改为
return RCTReadString(input, "__unused") ||
RCTReadString(input, "attribute((unused))") ||
RCTReadString(input, "attribute((unused))");

修改情况附张贴图


Snip20200322_10.png

你可能感兴趣的:(更新Xcode11之后 启动RN项目 报错[RCTAppState getCurrentAppState:error:])