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
网友评论