From 43c083ce28bf28f4dc09e7a4e7d4d9ac3d873938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Str=C3=B6mkvist?= Date: Wed, 28 Aug 2019 22:26:45 +0200 Subject: [PATCH] Use community WebView fork From https://github.com/react-native-community/react-native-webview As discussed in react-native-community/discussions-and-proposals#6 and react-native-community/discussions-and-proposals#3 --- App.js | 12 ++---------- package-lock.json | 17 ++++++++++++++--- package.json | 3 ++- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/App.js b/App.js index 19cf752..8386135 100644 --- a/App.js +++ b/App.js @@ -8,16 +8,8 @@ // External dependencies import React from 'react'; -import { - Alert, - BackHandler, - Linking, - Platform, - StatusBar, - StyleSheet, - View, - WebView, -} from 'react-native'; +import { Alert, BackHandler, Linking, Platform, StatusBar, StyleSheet, View } from 'react-native'; +import { WebView } from 'react-native-webview'; import Constants from 'expo-constants'; import { Notifications } from 'expo'; diff --git a/package-lock.json b/package-lock.json index 3e7ecd3..40c3fca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3155,6 +3155,17 @@ "unimodules-permissions-interface": "~2.0.1", "unimodules-sensors-interface": "~2.0.1", "uuid-js": "^0.7.5" + }, + "dependencies": { + "react-native-webview": { + "version": "5.8.1", + "resolved": "https://registry.npmjs.org/react-native-webview/-/react-native-webview-5.8.1.tgz", + "integrity": "sha512-b6pSvmjoiWtcz6YspggW02X+BRXJWuquHwkh37BRx1NMW1iwMZA31SnFQvTpPzWYYIb9WF/mRsy2nGtt9C6NIg==", + "requires": { + "escape-string-regexp": "1.0.5", + "invariant": "2.2.4" + } + } } }, "expo-ads-admob": { @@ -6639,9 +6650,9 @@ } }, "react-native-webview": { - "version": "5.8.1", - "resolved": "https://registry.npmjs.org/react-native-webview/-/react-native-webview-5.8.1.tgz", - "integrity": "sha512-b6pSvmjoiWtcz6YspggW02X+BRXJWuquHwkh37BRx1NMW1iwMZA31SnFQvTpPzWYYIb9WF/mRsy2nGtt9C6NIg==", + "version": "5.8.2", + "resolved": "https://registry.npmjs.org/react-native-webview/-/react-native-webview-5.8.2.tgz", + "integrity": "sha512-WvB5vH3xaxwXbk0RFGDIkM+MEeMfrfkhXdgYW1qj/xUuioeH5lduCpR+sID8+OR35zx+pBuamQ9jSlRGuREJrw==", "requires": { "escape-string-regexp": "1.0.5", "invariant": "2.2.4" diff --git a/package.json b/package.json index f67191b..f4289b3 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "react": "16.8.3", "react-dom": "^16.8.6", "react-native": "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz", - "react-native-web": "^0.11.4" + "react-native-web": "^0.11.4", + "react-native-webview": "^5.8.2" }, "devDependencies": { "babel-preset-expo": "^5.1.1",