Skip to content

Commit 1d4cd82

Browse files
committed
monkeypatch safeareaview in react-native-popover-view
1 parent 4db76df commit 1d4cd82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"ios:release": "react-native run-ios --configuration Release",
1919
"ios-simulator": "xcrun instruments -s devices | peco --select-1 --query 'Simulator iPhone' --on-cancel error | sed 's~.*\\[\\(.*\\)\\].*~\\1~' | xargs open -n -a Simulator --args -CurrentDeviceUDID",
2020
"lint": "eslint --report-unused-disable-directives --max-warnings=0 --cache source/ modules/ scripts/ *.js",
21-
"prepare": "sed -i.bak 's/\\(_backedTextInputView.scrollEnabled = \\)YES;/\\1NO;/' node_modules/react-native/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m",
21+
"prepare": "npm run prepareScrollEnabled && npm run preparePopover",
22+
"preparePopover": "sed -i.bak 's/\\(this.safeAreaViewReady = \\)false;/\\1true;/' node_modules/react-native-popover-view/src/Popover.js",
23+
"prepareScrollEnabled": "sed -i.bak 's/\\(_backedTextInputView.scrollEnabled = \\)YES;/\\1NO;/' node_modules/react-native/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.m",
2224
"prettier": "prettier --write '{source,modules,scripts,e2e}/**/*.{js,json}' 'data/**/*.css' '*.js'",
2325
"prettier:changed": "pretty-quick",
2426
"prettier:since-master": "pretty-quick",

0 commit comments

Comments
 (0)