Unknown argument type '__attribute__' in method -[RCTUIManager setJSResponder:blockNativeResponder:]

Unknown argument type 'attribute' in method -[RCTUIManager setJSResponder:blockNativeResponder:]

解决方案:
路径: 项目/node_modules/react-native/React/Base/RCTModuleMethod.mm. (或者.m)文件
找到 static BOOL RCTParseUnused 这个方法
替换成

static BOOL RCTParseUnused(const char **input)
{
return RCTReadString(input, "__unused") || RCTReadString(input, "attribute((unused))") || RCTReadString(input, "attribute((unused))");
}
再次重新运行就可以了
————————————————
原文链接:https://blog.csdn.net/xiaohu12685/article/details/103068071

你可能感兴趣的:(Unknown argument type '__attribute__' in method -[RCTUIManager setJSResponder:blockNativeResponder:])