Unknown Argument Type Attribute In Method

[Solved] Unknown Argument Type Attribute In Method | Shell - Code Explorer | yomemimo.com
Question : Unknown argument type '__attribute__' in method -[RCTAppState getCurrentAppState:error:].

Answered by : beautiful-bee-vs82pxg88nbb

//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))");
}

Source : https://stackoverflow.com/a/66686734/2317116 | Last Update : Tue, 04 Jan 22

Answers related to unknown argument type attribute in method rctappstate getcurrentappstate error

Code Explorer Popular Question For Shell