@exodus/react-native-webview 11.26.1-exodus.7 → 11.26.1-exodus.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/.all-contributorsrc +0 -185
- package/.circleci/config.yml +0 -66
- package/.eslintignore +0 -2
- package/.eslintrc.js +0 -94
- package/.flowconfig +0 -88
- package/.flowconfig.android +0 -88
- package/.gitattributes +0 -12
- package/.github/CODEOWNERS +0 -1
- package/.github/ISSUE_TEMPLATE/bug-report.md +0 -42
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -30
- package/.github/workflows/android-ci.yml +0 -35
- package/.github/workflows/detox.yml +0 -20
- package/.github/workflows/ios-ci.yml +0 -31
- package/.github/workflows/scripts/install-vs-features.ps1 +0 -108
- package/.github/workflows/stale.yml +0 -17
- package/.gitignore +0 -62
- package/.prettierrc.js +0 -10
- package/.releaserc +0 -15
- package/.vscode/settings.json +0 -9
- package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.4.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/babel.config.js +0 -11
- package/bin/setup +0 -26
- package/docs/Contributing.md +0 -102
- package/docs/Custom-Android.md +0 -222
- package/docs/Custom-iOS.md +0 -236
- package/docs/Debugging.md +0 -101
- package/docs/Getting-Started.md +0 -142
- package/docs/Guide.md +0 -613
- package/docs/Reference.md +0 -1629
- package/example/.gitignore +0 -14
- package/example/.watchmanconfig +0 -1
- package/example/App.tsx +0 -262
- package/example/android/.gradle/7.3.3/checksums/checksums.lock +0 -0
- package/example/android/.gradle/7.3.3/checksums/md5-checksums.bin +0 -0
- package/example/android/.gradle/7.3.3/checksums/sha1-checksums.bin +0 -0
- package/example/android/.gradle/7.3.3/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/example/android/.gradle/7.3.3/dependencies-accessors/gc.properties +0 -0
- package/example/android/.gradle/7.3.3/fileChanges/last-build.bin +0 -0
- package/example/android/.gradle/7.3.3/fileHashes/fileHashes.lock +0 -0
- package/example/android/.gradle/7.3.3/gc.properties +0 -0
- package/example/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/example/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/example/android/.gradle/vcs-1/gc.properties +0 -0
- package/example/android/build.gradle +0 -15
- package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/example/android/gradle.properties +0 -34
- package/example/android/gradlew +0 -234
- package/example/android/gradlew.bat +0 -89
- package/example/android/settings.gradle +0 -12
- package/example/app.json +0 -20
- package/example/assets/test.html +0 -9
- package/example/babel.config.js +0 -3
- package/example/examples/Alerts.tsx +0 -72
- package/example/examples/ApplePay.tsx +0 -23
- package/example/examples/Background.tsx +0 -54
- package/example/examples/Downloads.tsx +0 -57
- package/example/examples/Injection.tsx +0 -161
- package/example/examples/LocalPageLoad.tsx +0 -16
- package/example/examples/Messaging.tsx +0 -63
- package/example/examples/NativeWebpage.tsx +0 -22
- package/example/examples/Scrolling.tsx +0 -68
- package/example/examples/Uploads.tsx +0 -69
- package/example/index.js +0 -9
- package/example/ios/Podfile +0 -8
- package/example/ios/Podfile.lock +0 -445
- package/ios/Podfile +0 -10
- package/ios/Podfile.lock +0 -3
- package/ios/Pods/Manifest.lock +0 -3
- package/ios/Pods/Pods.xcodeproj/project.pbxproj +0 -397
- package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielezenwankwo.xcuserdatad/xcschemes/Pods-RNCWebView.xcscheme +0 -58
- package/ios/Pods/Pods.xcodeproj/xcuserdata/gabrielezenwankwo.xcuserdatad/xcschemes/xcschememanagement.plist +0 -16
- package/ios/Pods/Target Support Files/Pods-RNCWebView/Pods-RNCWebView-Info.plist +0 -26
- package/ios/Pods/Target Support Files/Pods-RNCWebView/Pods-RNCWebView-acknowledgements.markdown +0 -3
- package/ios/Pods/Target Support Files/Pods-RNCWebView/Pods-RNCWebView-acknowledgements.plist +0 -29
- package/ios/Pods/Target Support Files/Pods-RNCWebView/Pods-RNCWebView-dummy.m +0 -5
- package/ios/Pods/Target Support Files/Pods-RNCWebView/Pods-RNCWebView-umbrella.h +0 -16
- package/ios/Pods/Target Support Files/Pods-RNCWebView/Pods-RNCWebView.debug.xcconfig +0 -8
- package/ios/Pods/Target Support Files/Pods-RNCWebView/Pods-RNCWebView.modulemap +0 -6
- package/ios/Pods/Target Support Files/Pods-RNCWebView/Pods-RNCWebView.release.xcconfig +0 -8
- package/ios/RNCWebView.xcworkspace/contents.xcworkspacedata +0 -32
- package/jest-setups/jest.setup.js +0 -8
- package/jest.config.js +0 -184
- package/lib/UpdateOS.d.ts +0 -6
- package/lib/UpdateOS.d.ts.map +0 -1
- package/lib/UpdateOS.js +0 -49
- package/lib/WebView.android.d.ts.map +0 -1
- package/lib/WebView.d.ts.map +0 -1
- package/lib/WebView.ios.d.ts.map +0 -1
- package/lib/WebView.styles.d.ts.map +0 -1
- package/lib/WebViewNativeComponent.android.d.ts.map +0 -1
- package/lib/WebViewNativeComponent.ios.d.ts.map +0 -1
- package/lib/WebViewShared.d.ts.map +0 -1
- package/lib/WebViewTypes.d.ts.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/metro.config.js +0 -57
- package/src/WebView.android.tsx +0 -246
- package/src/WebView.ios.tsx +0 -221
- package/src/WebView.styles.ts +0 -44
- package/src/WebView.tsx +0 -18
- package/src/WebViewNativeComponent.android.ts +0 -8
- package/src/WebViewNativeComponent.ios.ts +0 -8
- package/src/WebViewShared.tsx +0 -257
- package/src/WebViewTypes.ts +0 -914
- package/src/__tests__/WebViewShared-test.js +0 -208
- package/src/__tests__/__snapshots__/WebViewShared-test.js.snap +0 -8
- package/src/index.ts +0 -4
- package/tsconfig.json +0 -24
- package/yarn.lock +0 -13895
package/jest.config.js
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
// For a detailed explanation regarding each configuration property, visit:
|
|
2
|
-
// https://jestjs.io/docs/en/configuration.html
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
// All imported modules in your tests should be mocked automatically
|
|
6
|
-
// automock: false,
|
|
7
|
-
|
|
8
|
-
// Stop running tests after `n` failures
|
|
9
|
-
// bail: 0,
|
|
10
|
-
|
|
11
|
-
// Respect "browser" field in package.json when resolving modules
|
|
12
|
-
// browser: false,
|
|
13
|
-
|
|
14
|
-
// The directory where Jest should store its cached dependency information
|
|
15
|
-
// cacheDirectory: "/private/var/folders/8f/kgcy219d1dvfvbcqky441_d00000gp/T/jest_dy",
|
|
16
|
-
|
|
17
|
-
// Automatically clear mock calls and instances between every test
|
|
18
|
-
clearMocks: true,
|
|
19
|
-
|
|
20
|
-
// Indicates whether the coverage information should be collected while executing the test
|
|
21
|
-
// collectCoverage: false,
|
|
22
|
-
|
|
23
|
-
// An array of glob patterns indicating a set of files for which coverage information should be collected
|
|
24
|
-
// collectCoverageFrom: null,
|
|
25
|
-
|
|
26
|
-
// The directory where Jest should output its coverage files
|
|
27
|
-
// coverageDirectory: "coverage",
|
|
28
|
-
|
|
29
|
-
// An array of regexp pattern strings used to skip coverage collection
|
|
30
|
-
// coveragePathIgnorePatterns: [
|
|
31
|
-
// "/node_modules/"
|
|
32
|
-
// ],
|
|
33
|
-
|
|
34
|
-
// A list of reporter names that Jest uses when writing coverage reports
|
|
35
|
-
// coverageReporters: [
|
|
36
|
-
// "json",
|
|
37
|
-
// "text",
|
|
38
|
-
// "lcov",
|
|
39
|
-
// "clover"
|
|
40
|
-
// ],
|
|
41
|
-
|
|
42
|
-
// An object that configures minimum threshold enforcement for coverage results
|
|
43
|
-
// coverageThreshold: null,
|
|
44
|
-
|
|
45
|
-
// A path to a custom dependency extractor
|
|
46
|
-
// dependencyExtractor: null,
|
|
47
|
-
|
|
48
|
-
// Make calling deprecated APIs throw helpful error messages
|
|
49
|
-
// errorOnDeprecated: false,
|
|
50
|
-
|
|
51
|
-
// Force coverage collection from ignored files usin a array of glob patterns
|
|
52
|
-
// forceCoverageMatch: [],
|
|
53
|
-
|
|
54
|
-
// A path to a module which exports an async function that is triggered once before all test suites
|
|
55
|
-
// globalSetup: null,
|
|
56
|
-
|
|
57
|
-
// A path to a module which exports an async function that is triggered once after all test suites
|
|
58
|
-
// globalTeardown: null,
|
|
59
|
-
|
|
60
|
-
// A set of global variables that need to be available in all test environments
|
|
61
|
-
// globals: {},
|
|
62
|
-
|
|
63
|
-
// An array of directory names to be searched recursively up from the requiring module's location
|
|
64
|
-
// moduleDirectories: [
|
|
65
|
-
// "node_modules"
|
|
66
|
-
// ],
|
|
67
|
-
|
|
68
|
-
// An array of file extensions your modules use
|
|
69
|
-
// moduleFileExtensions: [
|
|
70
|
-
// "js",
|
|
71
|
-
// "json",
|
|
72
|
-
// "jsx",
|
|
73
|
-
// "ts",
|
|
74
|
-
// "tsx",
|
|
75
|
-
// "node"
|
|
76
|
-
// ],
|
|
77
|
-
|
|
78
|
-
// A map from regular expressions to module names that allow to stub out resources with a single module
|
|
79
|
-
// moduleNameMapper: {},
|
|
80
|
-
|
|
81
|
-
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
|
|
82
|
-
// modulePathIgnorePatterns: [],
|
|
83
|
-
|
|
84
|
-
// Activates notifications for test results
|
|
85
|
-
// notify: false,
|
|
86
|
-
|
|
87
|
-
// An enum that specifies notification mode. Requires { notify: true }
|
|
88
|
-
// notifyMode: "failure-change",
|
|
89
|
-
|
|
90
|
-
// A preset that is used as a base for Jest's configuration
|
|
91
|
-
preset: 'react-native',
|
|
92
|
-
|
|
93
|
-
// Run tests from one or more projects
|
|
94
|
-
// projects: null,
|
|
95
|
-
|
|
96
|
-
// Use this configuration option to add custom reporters to Jest
|
|
97
|
-
// reporters: undefined,
|
|
98
|
-
|
|
99
|
-
// Automatically reset mock state between every test
|
|
100
|
-
// resetMocks: false,
|
|
101
|
-
|
|
102
|
-
// Reset the module registry before running each individual test
|
|
103
|
-
// resetModules: false,
|
|
104
|
-
|
|
105
|
-
// A path to a custom resolver
|
|
106
|
-
// resolver: null,
|
|
107
|
-
|
|
108
|
-
// Automatically restore mock state between every test
|
|
109
|
-
// restoreMocks: false,
|
|
110
|
-
|
|
111
|
-
// The root directory that Jest should scan for tests and modules within
|
|
112
|
-
// rootDir: null,
|
|
113
|
-
|
|
114
|
-
// A list of paths to directories that Jest should use to search for files in
|
|
115
|
-
// roots: [
|
|
116
|
-
// "<rootDir>"
|
|
117
|
-
// ],
|
|
118
|
-
|
|
119
|
-
// Allows you to use a custom runner instead of Jest's default test runner
|
|
120
|
-
// runner: "jest-runner",
|
|
121
|
-
|
|
122
|
-
// The paths to modules that run some code to configure or set up the testing environment before each test
|
|
123
|
-
// setupFiles: [],
|
|
124
|
-
|
|
125
|
-
// A list of paths to modules that run some code to configure or set up the testing framework before each test
|
|
126
|
-
// setupFilesAfterEnv: [],
|
|
127
|
-
|
|
128
|
-
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
|
|
129
|
-
// snapshotSerializers: [],
|
|
130
|
-
|
|
131
|
-
// The test environment that will be used for testing
|
|
132
|
-
testEnvironment: 'node',
|
|
133
|
-
|
|
134
|
-
// Options that will be passed to the testEnvironment
|
|
135
|
-
// testEnvironmentOptions: {},
|
|
136
|
-
|
|
137
|
-
// Adds a location field to test results
|
|
138
|
-
// testLocationInResults: false,
|
|
139
|
-
|
|
140
|
-
// The glob patterns Jest uses to detect test files
|
|
141
|
-
// testMatch: [
|
|
142
|
-
// "**/__tests__/**/*.[jt]s?(x)",
|
|
143
|
-
// "**/?(*.)+(spec|test).[tj]s?(x)"
|
|
144
|
-
// ],
|
|
145
|
-
|
|
146
|
-
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
|
|
147
|
-
// testPathIgnorePatterns: [
|
|
148
|
-
// "/node_modules/"
|
|
149
|
-
// ],
|
|
150
|
-
|
|
151
|
-
// The regexp pattern or array of patterns that Jest uses to detect test files
|
|
152
|
-
// testRegex: [],
|
|
153
|
-
|
|
154
|
-
// This option allows the use of a custom results processor
|
|
155
|
-
// testResultsProcessor: null,
|
|
156
|
-
|
|
157
|
-
// This option allows use of a custom test runner
|
|
158
|
-
// testRunner: "jasmine2",
|
|
159
|
-
|
|
160
|
-
// This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
|
|
161
|
-
// testURL: "http://localhost",
|
|
162
|
-
|
|
163
|
-
// Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
|
|
164
|
-
// timers: "real",
|
|
165
|
-
|
|
166
|
-
// A map from regular expressions to paths to transformers
|
|
167
|
-
|
|
168
|
-
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
|
|
169
|
-
// transformIgnorePatterns: [
|
|
170
|
-
// "/node_modules/"
|
|
171
|
-
// ],
|
|
172
|
-
|
|
173
|
-
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
|
|
174
|
-
// unmockedModulePathPatterns: undefined,
|
|
175
|
-
|
|
176
|
-
// Indicates whether each individual test should be reported during the run
|
|
177
|
-
// verbose: null,
|
|
178
|
-
|
|
179
|
-
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
|
|
180
|
-
// watchPathIgnorePatterns: [],
|
|
181
|
-
|
|
182
|
-
// Whether to use watchman for file crawling
|
|
183
|
-
// watchman: true,
|
|
184
|
-
};
|
package/lib/UpdateOS.d.ts
DELETED
package/lib/UpdateOS.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateOS.d.ts","sourceRoot":"","sources":["../src/UpdateOS.tsx"],"names":[],"mappings":";AAwCA,QAAA,MAAM,QAAQ;;iBA6Bb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/lib/UpdateOS.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Text, View, TouchableOpacity, Image, StyleSheet } from 'react-native';
|
|
3
|
-
import UpdateBrowser from './assets/update-browser.png';
|
|
4
|
-
const styles = StyleSheet.create({
|
|
5
|
-
container: {
|
|
6
|
-
alignItems: 'center',
|
|
7
|
-
justifyContent: 'space-evenly',
|
|
8
|
-
marginHorizontal: 30,
|
|
9
|
-
},
|
|
10
|
-
offWhite: {
|
|
11
|
-
color: 'rgba(255, 255, 255, 0.5)'
|
|
12
|
-
},
|
|
13
|
-
text: {
|
|
14
|
-
fontSize: 14,
|
|
15
|
-
lineHeight: 20,
|
|
16
|
-
fontWeight: '400',
|
|
17
|
-
textAlign: 'center',
|
|
18
|
-
color: '#FFF',
|
|
19
|
-
marginTop: 15,
|
|
20
|
-
},
|
|
21
|
-
title: {
|
|
22
|
-
fontSize: 28,
|
|
23
|
-
lineHeight: 33,
|
|
24
|
-
paddingHorizontal: 20,
|
|
25
|
-
marginTop: 35,
|
|
26
|
-
},
|
|
27
|
-
button: {
|
|
28
|
-
backgroundColor: 'rgba(23, 24, 39, 0.5)',
|
|
29
|
-
borderRadius: 20,
|
|
30
|
-
height: 40,
|
|
31
|
-
justifyContent: 'center'
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
const UpdateOS = ({ device } = { device: String }) => {
|
|
35
|
-
return (<View style={styles.container}>
|
|
36
|
-
<Image source={UpdateBrowser}/>
|
|
37
|
-
<Text style={[styles.text, styles.title]}>{`Update ${device} to Continue`}</Text>
|
|
38
|
-
<Text style={[styles.text, styles.offWhite]}>{`To keep your wallet safe while browsing, update your ${device} and try again`}</Text>
|
|
39
|
-
<Text style={[styles.text, { fontSize: 16 }]}>
|
|
40
|
-
{'Go to Settings > System > System Update'}
|
|
41
|
-
</Text>
|
|
42
|
-
<TouchableOpacity onPress={() => { }} style={[styles.text, styles.button]}>
|
|
43
|
-
<Text style={{ color: 'rgba(255, 255, 255, 0.6)', textAlign: 'center' }}>
|
|
44
|
-
Go to Settings
|
|
45
|
-
</Text>
|
|
46
|
-
</TouchableOpacity>
|
|
47
|
-
</View>);
|
|
48
|
-
};
|
|
49
|
-
export default UpdateOS;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebView.android.d.ts","sourceRoot":"","sources":["../src/WebView.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6F,MAAM,OAAO,CAAC;AAsBlH,OAAO,EACL,mBAAmB,EAEpB,MAAM,gBAAgB,CAAC;AA0NxB,QAAA,MAAM,OAAO;iCAHsB,QAAQ,OAAO,CAAC;CAGqB,CAAC;AAEzE,eAAe,OAAO,CAAC"}
|
package/lib/WebView.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebView.d.ts","sourceRoot":"","sources":["../src/WebView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAEtE,oBAAY,YAAY,GAAG,eAAe,GAAG,mBAAmB,CAAC;AAIjE,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,YAAY,CAMlD,CAAC;AAEF,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,eAAe,OAAO,CAAC"}
|
package/lib/WebView.ios.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebView.ios.d.ts","sourceRoot":"","sources":["../src/WebView.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+D,MAAM,OAAO,CAAC;AAmBpF,OAAO,EACL,eAAe,EAIhB,MAAM,gBAAgB,CAAC;AAkMxB,QAAA,MAAM,OAAO;iCAHsB,QAAQ,OAAO,CAAC;CAGqB,CAAC;AAEzE,eAAe,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebView.styles.d.ts","sourceRoot":"","sources":["../src/WebView.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,UAAU,MAAM;IACd,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,SAAS,CAAC;IACrB,cAAc,EAAE,SAAS,CAAC;IAC1B,kBAAkB,EAAE,SAAS,CAAC;IAC9B,OAAO,EAAE,SAAS,CAAC;IACnB,kBAAkB,EAAE,SAAS,CAAC;CAC/B;AAED,QAAA,MAAM,MAAM,QA8BV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebViewNativeComponent.android.d.ts","sourceRoot":"","sources":["../src/WebViewNativeComponent.android.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,QAAA,MAAM,UAAU,EAAE,OAAO,oBAExB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebViewNativeComponent.ios.d.ts","sourceRoot":"","sources":["../src/WebViewNativeComponent.ios.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,QAAA,MAAM,UAAU,EAAE,OAAO,gBAExB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebViewShared.d.ts","sourceRoot":"","sources":["../src/WebViewShared.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,EAC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AO,CAAC;IAE9B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;OAGG;IACH,qCAAqC,CAAC,EAAE,MAAM,CAAC;IAE/C;;;OAGG;IACH,8BAA8B,CAAC,EAAE,OAAO,CAAC;IAEzC;;;OAGG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IAEvC;;;OAGG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAE1C;;;;;;OAMG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpC;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;IAE5D;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAE1C;;OAEG;IACH,YAAY,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,kBAAkB,CAAC;IAEhE;;OAEG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;IAEvC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B;;OAEG;IAEH,2BAA2B,CAAC,EAAE,WAAW,CAAC;CAC3C"}
|
package/lib/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,eAAe,OAAO,CAAC"}
|
package/metro.config.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Metro configuration for React Native
|
|
3
|
-
* https://github.com/facebook/react-native
|
|
4
|
-
*
|
|
5
|
-
* @format
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
const path = require('path');
|
|
9
|
-
|
|
10
|
-
const exclusionList = (() => {
|
|
11
|
-
try {
|
|
12
|
-
return require('metro-config/src/defaults/exclusionList');
|
|
13
|
-
} catch (_) {
|
|
14
|
-
// `blacklist` was renamed to `exclusionList` in 0.60
|
|
15
|
-
return require('metro-config/src/defaults/blacklist');
|
|
16
|
-
}
|
|
17
|
-
})();
|
|
18
|
-
|
|
19
|
-
const blockList = exclusionList([
|
|
20
|
-
/node_modules\/.*\/node_modules\/react-native\/.*/,
|
|
21
|
-
|
|
22
|
-
// Workaround for `EPERM: operation not permitted, lstat '~\midl-MIDLRT-cl.read.1.tlog'`
|
|
23
|
-
/.*\.tlog/,
|
|
24
|
-
|
|
25
|
-
// This stops "react-native run-windows" from causing the metro server to
|
|
26
|
-
// crash if its already running
|
|
27
|
-
new RegExp(`${path.join(__dirname, 'windows').replace(/[/\\]+/g, '/')}.*`),
|
|
28
|
-
|
|
29
|
-
// Workaround for `EBUSY: resource busy or locked, open '~\msbuild.ProjectImports.zip'`
|
|
30
|
-
/.*\.ProjectImports\.zip/,
|
|
31
|
-
]);
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* This config is a bit exotic because our example app is not its own package
|
|
35
|
-
* (that would require setting this repo up as a monorepo). We need to tell
|
|
36
|
-
* Metro that the root of the project is our `example` folder (`projectRoot`),
|
|
37
|
-
* and that it should look for modules in repo root (`watchFolders`) as this is
|
|
38
|
-
* where the `node_modules` folder lives. Metro will otherwise fail to resolve
|
|
39
|
-
* anything.
|
|
40
|
-
*/
|
|
41
|
-
module.exports = {
|
|
42
|
-
projectRoot: path.join(__dirname, 'example'),
|
|
43
|
-
watchFolders: [__dirname],
|
|
44
|
-
resolver: {
|
|
45
|
-
resolverMainFields: ['main-internal', 'browser', 'main'],
|
|
46
|
-
blacklistRE: blockList,
|
|
47
|
-
blockList,
|
|
48
|
-
},
|
|
49
|
-
transformer: {
|
|
50
|
-
getTransformOptions: async () => ({
|
|
51
|
-
transform: {
|
|
52
|
-
experimentalImportSupport: false,
|
|
53
|
-
inlineRequires: false,
|
|
54
|
-
},
|
|
55
|
-
}),
|
|
56
|
-
},
|
|
57
|
-
};
|
package/src/WebView.android.tsx
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
Text,
|
|
5
|
-
View,
|
|
6
|
-
NativeModules,
|
|
7
|
-
} from 'react-native';
|
|
8
|
-
|
|
9
|
-
import BatchedBridge from 'react-native/Libraries/BatchedBridge/BatchedBridge';
|
|
10
|
-
// @ts-expect-error react-native doesn't have this type
|
|
11
|
-
import codegenNativeCommandsUntyped from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
12
|
-
|
|
13
|
-
import invariant from 'invariant';
|
|
14
|
-
|
|
15
|
-
import RNCWebView from "./WebViewNativeComponent.android";
|
|
16
|
-
import {
|
|
17
|
-
defaultOriginWhitelist,
|
|
18
|
-
defaultRenderError,
|
|
19
|
-
defaultRenderLoading,
|
|
20
|
-
useWebWiewLogic,
|
|
21
|
-
versionPasses,
|
|
22
|
-
} from './WebViewShared';
|
|
23
|
-
import {
|
|
24
|
-
AndroidWebViewProps,
|
|
25
|
-
NativeWebViewAndroid,
|
|
26
|
-
} from './WebViewTypes';
|
|
27
|
-
|
|
28
|
-
import styles from './WebView.styles';
|
|
29
|
-
|
|
30
|
-
const { getWebViewDefaultUserAgent } = NativeModules.RNCWebViewUtils;
|
|
31
|
-
|
|
32
|
-
let userAgentPromise: Promise<string> | undefined
|
|
33
|
-
|
|
34
|
-
async function getUserAgent(): Promise<string> {
|
|
35
|
-
if (!userAgentPromise) userAgentPromise = getWebViewDefaultUserAgent()
|
|
36
|
-
const userAgent = await userAgentPromise
|
|
37
|
-
return userAgent || 'unknown'
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const codegenNativeCommands = codegenNativeCommandsUntyped as <T extends {}>(options: { supportedCommands: (keyof T)[] }) => T;
|
|
41
|
-
|
|
42
|
-
const Commands = codegenNativeCommands({
|
|
43
|
-
supportedCommands: ['goBack', 'goForward', 'reload', 'stopLoading', /* 'injectJavaScript', */ 'requestFocus', 'postMessage', 'clearFormData', 'clearCache', 'clearHistory', 'loadUrl'],
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* A simple counter to uniquely identify WebView instances. Do not use this for anything else.
|
|
48
|
-
*/
|
|
49
|
-
let uniqueRef = 0;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Harcoded default for security.
|
|
53
|
-
*/
|
|
54
|
-
const mediaPlaybackRequiresUserAction = true;
|
|
55
|
-
// Android only
|
|
56
|
-
const setSupportMultipleWindows = true;
|
|
57
|
-
const mixedContentMode = 'never'
|
|
58
|
-
const hardMinimumChromeVersion = '100.0' // TODO: determinime a good lower bound
|
|
59
|
-
|
|
60
|
-
const WebViewComponent = forwardRef<{}, AndroidWebViewProps>(({
|
|
61
|
-
overScrollMode = 'always',
|
|
62
|
-
javaScriptEnabled = true,
|
|
63
|
-
thirdPartyCookiesEnabled = true,
|
|
64
|
-
scalesPageToFit = true,
|
|
65
|
-
saveFormDataDisabled = false,
|
|
66
|
-
cacheEnabled = true,
|
|
67
|
-
androidHardwareAccelerationDisabled = false,
|
|
68
|
-
androidLayerType = "none",
|
|
69
|
-
originWhitelist = defaultOriginWhitelist,
|
|
70
|
-
setBuiltInZoomControls = true,
|
|
71
|
-
setDisplayZoomControls = false,
|
|
72
|
-
nestedScrollEnabled = false,
|
|
73
|
-
startInLoadingState,
|
|
74
|
-
onLoadStart,
|
|
75
|
-
onError,
|
|
76
|
-
onLoad,
|
|
77
|
-
onLoadEnd,
|
|
78
|
-
onMessage: onMessageProp,
|
|
79
|
-
renderLoading,
|
|
80
|
-
renderError,
|
|
81
|
-
style,
|
|
82
|
-
containerStyle,
|
|
83
|
-
source,
|
|
84
|
-
onShouldStartLoadWithRequest: onShouldStartLoadWithRequestProp,
|
|
85
|
-
validateMeta,
|
|
86
|
-
validateData,
|
|
87
|
-
minimumChromeVersion,
|
|
88
|
-
unsupportedVersionComponent: UnsupportedVersionComponent,
|
|
89
|
-
...otherProps
|
|
90
|
-
}, ref) => {
|
|
91
|
-
const messagingModuleName = useRef<string>(`WebViewMessageHandler${uniqueRef += 1}`).current;
|
|
92
|
-
const webViewRef = useRef<NativeWebViewAndroid | null>(null);
|
|
93
|
-
|
|
94
|
-
const onShouldStartLoadWithRequestCallback = useCallback((shouldStart: boolean,
|
|
95
|
-
url: string,
|
|
96
|
-
lockIdentifier?: number) => {
|
|
97
|
-
if (lockIdentifier) {
|
|
98
|
-
NativeModules.RNCWebView.onShouldStartLoadWithRequestCallback(shouldStart, lockIdentifier);
|
|
99
|
-
} else if (shouldStart) {
|
|
100
|
-
Commands.loadUrl(webViewRef.current, url);
|
|
101
|
-
}
|
|
102
|
-
}, []);
|
|
103
|
-
|
|
104
|
-
const { onLoadingStart, onShouldStartLoadWithRequest, onMessage, viewState, setViewState, lastErrorEvent, onLoadingError, onLoadingFinish, onLoadingProgress, passesWhitelist } = useWebWiewLogic({
|
|
105
|
-
onLoad,
|
|
106
|
-
onError,
|
|
107
|
-
onLoadEnd,
|
|
108
|
-
onLoadStart,
|
|
109
|
-
onMessageProp,
|
|
110
|
-
startInLoadingState,
|
|
111
|
-
originWhitelist,
|
|
112
|
-
onShouldStartLoadWithRequestProp,
|
|
113
|
-
onShouldStartLoadWithRequestCallback,
|
|
114
|
-
validateMeta,
|
|
115
|
-
validateData,
|
|
116
|
-
})
|
|
117
|
-
|
|
118
|
-
useImperativeHandle(ref, () => ({
|
|
119
|
-
goForward: () => Commands.goForward(webViewRef.current),
|
|
120
|
-
goBack: () => Commands.goBack(webViewRef.current),
|
|
121
|
-
reload: () => {
|
|
122
|
-
setViewState(
|
|
123
|
-
'LOADING',
|
|
124
|
-
); Commands.reload(webViewRef.current)
|
|
125
|
-
},
|
|
126
|
-
stopLoading: () => Commands.stopLoading(webViewRef.current),
|
|
127
|
-
postMessage: (data: string) => Commands.postMessage(webViewRef.current, data),
|
|
128
|
-
// injectJavaScript: (data: string) => Commands.injectJavaScript(webViewRef.current, data),
|
|
129
|
-
requestFocus: () => Commands.requestFocus(webViewRef.current),
|
|
130
|
-
clearFormData: () => Commands.clearFormData(webViewRef.current),
|
|
131
|
-
clearCache: (includeDiskFiles: boolean) => Commands.clearCache(webViewRef.current, includeDiskFiles),
|
|
132
|
-
clearHistory: () => Commands.clearHistory(webViewRef.current),
|
|
133
|
-
}), [setViewState, webViewRef]);
|
|
134
|
-
|
|
135
|
-
const directEventCallbacks = useMemo(() => ({
|
|
136
|
-
onShouldStartLoadWithRequest,
|
|
137
|
-
onMessage,
|
|
138
|
-
}), [onMessage, onShouldStartLoadWithRequest]);
|
|
139
|
-
|
|
140
|
-
useEffect(() => {
|
|
141
|
-
BatchedBridge.registerCallableModule(messagingModuleName, directEventCallbacks);
|
|
142
|
-
}, [messagingModuleName, directEventCallbacks])
|
|
143
|
-
|
|
144
|
-
const [userAgent, setUserAgent] = useState<string>()
|
|
145
|
-
|
|
146
|
-
useEffect(() => {
|
|
147
|
-
getUserAgent().then(setUserAgent)
|
|
148
|
-
}, [])
|
|
149
|
-
|
|
150
|
-
if (!userAgent) return null // stop the rendering until userAgent is known
|
|
151
|
-
const version = userAgent.match(/chrome\/((?:[0-9]+\.)+[0-9]+)/i)?.[1]
|
|
152
|
-
if (!(versionPasses(version, minimumChromeVersion) && versionPasses(version, hardMinimumChromeVersion))) {
|
|
153
|
-
if (UnsupportedVersionComponent) {
|
|
154
|
-
return <UnsupportedVersionComponent />
|
|
155
|
-
}
|
|
156
|
-
return (
|
|
157
|
-
<View style={{ alignSelf: 'flex-start' }}>
|
|
158
|
-
<Text style={{ color: 'red' }}>
|
|
159
|
-
Chrome version is outdated and insecure. Update it to continue.
|
|
160
|
-
</Text>
|
|
161
|
-
</View>
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
let otherView = null;
|
|
166
|
-
if (viewState === 'LOADING') {
|
|
167
|
-
otherView = (renderLoading || defaultRenderLoading)();
|
|
168
|
-
} else if (viewState === 'ERROR') {
|
|
169
|
-
invariant(lastErrorEvent != null, 'lastErrorEvent expected to be non-null');
|
|
170
|
-
otherView = (renderError || defaultRenderError)(
|
|
171
|
-
lastErrorEvent.domain,
|
|
172
|
-
lastErrorEvent.code,
|
|
173
|
-
lastErrorEvent.description,
|
|
174
|
-
);
|
|
175
|
-
} else if (viewState !== 'IDLE') {
|
|
176
|
-
console.error(`RNCWebView invalid state encountered: ${viewState}`);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
const webViewStyles = [styles.container, styles.webView, style];
|
|
180
|
-
const webViewContainerStyle = [styles.container, containerStyle];
|
|
181
|
-
|
|
182
|
-
if (typeof source !== "number" && source && 'method' in source) {
|
|
183
|
-
if (source.method === 'POST' && source.headers) {
|
|
184
|
-
console.warn(
|
|
185
|
-
'WebView: `source.headers` is not supported when using POST.',
|
|
186
|
-
);
|
|
187
|
-
} else if (source.method === 'GET' && source.body) {
|
|
188
|
-
console.warn('WebView: `source.body` is not supported when using GET.');
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
if (typeof source === "object" && 'uri' in source && !passesWhitelist(source.uri)){
|
|
193
|
-
// eslint-disable-next-line
|
|
194
|
-
source = {uri: "about:blank"};
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
const NativeWebView = RNCWebView;
|
|
198
|
-
|
|
199
|
-
const webView = <NativeWebView
|
|
200
|
-
key="webViewKey"
|
|
201
|
-
{...otherProps}
|
|
202
|
-
messagingEnabled={typeof onMessageProp === 'function'}
|
|
203
|
-
messagingModuleName={messagingModuleName}
|
|
204
|
-
|
|
205
|
-
onLoadingError={onLoadingError}
|
|
206
|
-
onLoadingFinish={onLoadingFinish}
|
|
207
|
-
onLoadingProgress={onLoadingProgress}
|
|
208
|
-
onLoadingStart={onLoadingStart}
|
|
209
|
-
onMessage={onMessage}
|
|
210
|
-
onShouldStartLoadWithRequest={onShouldStartLoadWithRequest}
|
|
211
|
-
|
|
212
|
-
ref={webViewRef}
|
|
213
|
-
// TODO: find a better way to type this.
|
|
214
|
-
source={source}
|
|
215
|
-
style={webViewStyles}
|
|
216
|
-
overScrollMode={overScrollMode}
|
|
217
|
-
javaScriptEnabled={javaScriptEnabled}
|
|
218
|
-
thirdPartyCookiesEnabled={thirdPartyCookiesEnabled}
|
|
219
|
-
scalesPageToFit={scalesPageToFit}
|
|
220
|
-
saveFormDataDisabled={saveFormDataDisabled}
|
|
221
|
-
cacheEnabled={cacheEnabled}
|
|
222
|
-
androidHardwareAccelerationDisabled={androidHardwareAccelerationDisabled}
|
|
223
|
-
androidLayerType={androidLayerType}
|
|
224
|
-
setSupportMultipleWindows={setSupportMultipleWindows}
|
|
225
|
-
setBuiltInZoomControls={setBuiltInZoomControls}
|
|
226
|
-
setDisplayZoomControls={setDisplayZoomControls}
|
|
227
|
-
mixedContentMode={mixedContentMode}
|
|
228
|
-
nestedScrollEnabled={nestedScrollEnabled}
|
|
229
|
-
mediaPlaybackRequiresUserAction={mediaPlaybackRequiresUserAction}
|
|
230
|
-
/>
|
|
231
|
-
|
|
232
|
-
return (
|
|
233
|
-
<View style={webViewContainerStyle}>
|
|
234
|
-
{webView}
|
|
235
|
-
{otherView}
|
|
236
|
-
</View>
|
|
237
|
-
);
|
|
238
|
-
});
|
|
239
|
-
|
|
240
|
-
// native implementation should return "true" only for Android 5+
|
|
241
|
-
const isFileUploadSupported: () => Promise<boolean>
|
|
242
|
-
= NativeModules.RNCWebView.isFileUploadSupported();
|
|
243
|
-
|
|
244
|
-
const WebView = Object.assign(WebViewComponent, {isFileUploadSupported});
|
|
245
|
-
|
|
246
|
-
export default WebView;
|