Answers for "Unknown argument type '__attribute__' in method -[RCTAppState getCurrentAppState:error:]."

0

Unknown argument type '__attribute__' in method -[RCTAppState getCurrentAppState:error:].

//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))");
}
Posted by: Guest on December-28-2021

Code answers related to "Unknown argument type '__attribute__' in method -[RCTAppState getCurrentAppState:error:]."

Code answers related to "Javascript"

Browse Popular Code Answers by Language