Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Xcode 11 error #86

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"test": "echo \"Error: no test specified\" && exit 1",
"flow": "flow",
"lint": "eslint .",
"lint:fix": "eslint . --fix --ext .js"
"lint:fix": "eslint . --fix --ext .js",
"postinstall": "patch-package"
},
"keywords": [
"react-native",
Expand Down Expand Up @@ -43,5 +44,9 @@
},
"jest": {
"preset": "react-native"
},
"dependencies": {
"patch-package": "^6.2.0",
"postinstall-postinstall": "^2.0.0"
}
}
12 changes: 12 additions & 0 deletions patches/react-native+0.58.4.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/node_modules/react-native/React/Base/RCTModuleMethod.mm b/node_modules/react-native/React/Base/RCTModuleMethod.mm
index e9a3657..d228667 100644
--- a/node_modules/react-native/React/Base/RCTModuleMethod.mm
+++ b/node_modules/react-native/React/Base/RCTModuleMethod.mm
@@ -91,6 +91,7 @@ static BOOL RCTParseSelectorPart(const char **input, NSMutableString *selector)
static BOOL RCTParseUnused(const char **input)
{
return RCTReadString(input, "__unused") ||
+ RCTReadString(input, "__attribute__((__unused__))") ||
RCTReadString(input, "__attribute__((unused))");
}

Loading