fix: upgrade react-native-webview dependency, remove obsolete props (#1140)

* fix: upgrade react-native-webview dependency, remove obsolete props

react-native-webview issued a breaking change release to shed the
UIWebView references on iOS, as Apple indicated they would soon stop
accepting app submissions that used that deprecated API.

react-native-webview is now fully WebKit and without this the webview
extension here references obsolete symbols because the JS layer still has
RNCWKWebView symbols from react-native-webview <7 while the auto-linked
iOS Pod is from react-native-webview >=7

Perhaps react-native-webview should be a peerDependency?

More info: https://github.com/react-native-community/react-native-webview/releases/tag/v7.0.1

* remove react-native-webview devDependency as part of lean-core extraction

* update package-lock after removing react-native-webview devDependency
This commit is contained in:
Mike Hardy 2019-09-12 15:09:07 -05:00 коммит произвёл Brent Erickson
Родитель 2ad594343b
Коммит a0cf7c6f73
4 изменённых файлов: 1 добавлений и 27 удалений

Просмотреть файл

@ -9,7 +9,7 @@
"tslint": "tslint -p tsconfig.json -r tslint.json --fix || true"
},
"dependencies": {
"react-native-webview": "^5.6.3"
"react-native-webview": "^7.0.5"
},
"peerDependencies": {
"reactxp": "^2.0.0-rc.1",

Просмотреть файл

@ -40,11 +40,6 @@ export class WebView extends React.Component<Types.WebViewProps, RX.Types.Statel
const source = this._buildSource();
const injectedJavascript = this._buildInjectedJavascript();
// Force use of webkit on iOS (applies to RN 0.57 and newer only).
const extendedProps: RNWebViewProps = {
useWebKit: true
};
return (
<RNWebView
ref={ this._onMount }
@ -65,7 +60,6 @@ export class WebView extends React.Component<Types.WebViewProps, RX.Types.Statel
onMessage={ this.props.onMessage ? this._onMessage : undefined }
testID={ this.props.testId }
mixedContentMode={ this._sandboxToMixedContentMode(this.props.sandbox) }
{ ...extendedProps }
/>
);
}

19
package-lock.json сгенерированный
Просмотреть файл

@ -215,15 +215,6 @@
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
"dev": true
},
"invariant": {
"version": "2.2.4",
"resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
"integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==",
"dev": true,
"requires": {
"loose-envify": "^1.0.0"
}
},
"js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
@ -317,16 +308,6 @@
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.8.6.tgz",
"integrity": "sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA=="
},
"react-native-webview": {
"version": "5.12.1",
"resolved": "https://registry.npmjs.org/react-native-webview/-/react-native-webview-5.12.1.tgz",
"integrity": "sha512-pFYzyNUG+k7Jk2a0Z3S1+OL9qtp0VQxVP08d1ume/O6l1Xibi0K0hRZms7zPUHqQc2uWEfjZ0FOa17MIN7vruw==",
"dev": true,
"requires": {
"escape-string-regexp": "1.0.5",
"invariant": "2.2.4"
}
},
"rebound": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/rebound/-/rebound-0.1.0.tgz",

Просмотреть файл

@ -28,7 +28,6 @@
"@types/react": "^16.8.23",
"@types/react-dom": "^16.8.5",
"@types/react-native": "^0.57.65",
"react-native-webview": "^5.12.1",
"tslint": "^5.18.0",
"tslint-microsoft-contrib": "^6.2.0",
"tslint-react": "^4.0.0",