react native Unknown argument type ‘__attribute__’ in method

找到myproject/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))”);
}

重新编译

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注