📌  相关文章
📜  方法 -[RCTAppState getCurrentAppState:error:] 中的未知参数类型“__attribute__”. - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:44.687000             🧑  作者: Mango

代码示例1
//Edit the following file
//node_modules/react-native/React/Base/RCTModuleMethod.mm

//Add in line 94:
RCTReadString(input, "__attribute__((__unused__))") ||
  
// You should endup with something like this:
static BOOL RCTParseUnused(const char **input)
{
  return RCTReadString(input, "__unused") ||
         RCTReadString(input, "__attribute__((__unused__))") ||
         RCTReadString(input, "__attribute__((unused))");
}