Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit c364360

Browse files
Jay TeJay Te
Jay Te
authored and
Jay Te
committed
Use webview from react-native instead of react-native-community
1 parent ca2b032 commit c364360

File tree

3 files changed

+3
-38
lines changed

3 files changed

+3
-38
lines changed

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import React from "react";
44

55
import PropTypes from "prop-types";
66

7-
import { View, Linking, PixelRatio } from "react-native";
8-
import { WebView } from "react-native-webview";
7+
import { WebView, View, Linking, PixelRatio } from "react-native";
98

109
import BaseComponent from "./BaseComponent";
1110
import Utils from "./Utils";
@@ -191,7 +190,7 @@ class Webbrowser extends BaseComponent {
191190
onShouldStartLoadWithRequest={this.onShouldStartLoadWithRequest}
192191
startInLoadingState={true}
193192
// scalesPageToFit is not usable when useWebKit is set to true
194-
// scalesPageToFit={this.state.scalesPageToFit}
193+
scalesPageToFit={this.state.scalesPageToFit}
195194
onLoad={() => this.refs[WEBVIEW_REF].postMessage(this.state.cookie)}
196195
{...(this.state.jsCode
197196
? { injectedJavaScript: this.state.jsCode }

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,5 @@
77
"url": "git+https://github.com/lavajeff/react-native-webview-browser.git"
88
},
99
"author": "Jeffrey Chai <jeffrey@lavax.co>",
10-
"license": "MIT",
11-
"dependencies": {
12-
"react-native-webview": "5.12.0"
13-
}
10+
"license": "MIT"
1411
}

yarn.lock

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,3 @@
22
# yarn lockfile v1
33

44

5-
escape-string-regexp@1.0.5:
6-
version "1.0.5"
7-
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
8-
integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=
9-
10-
invariant@2.2.4:
11-
version "2.2.4"
12-
resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.4.tgz#610f3c92c9359ce1db616e538008d23ff35158e6"
13-
integrity sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==
14-
dependencies:
15-
loose-envify "^1.0.0"
16-
17-
"js-tokens@^3.0.0 || ^4.0.0":
18-
version "4.0.0"
19-
resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499"
20-
integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==
21-
22-
loose-envify@^1.0.0:
23-
version "1.4.0"
24-
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
25-
integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==
26-
dependencies:
27-
js-tokens "^3.0.0 || ^4.0.0"
28-
29-
react-native-webview@5.12.0:
30-
version "5.12.0"
31-
resolved "https://registry.yarnpkg.com/react-native-webview/-/react-native-webview-5.12.0.tgz#e673f72a287829444ddcbc7ea2f28f2e5862f9fb"
32-
integrity sha512-tdKBRgxq/DP6kg/B3tYoqmWiARY2BKTqbjFHJ8vH7TcThaPprlyWJyHuO54FfrS9dnPpU2H4C5i3btJvvy2OVQ==
33-
dependencies:
34-
escape-string-regexp "1.0.5"
35-
invariant "2.2.4"

0 commit comments

Comments
 (0)