@exodus/react-native-webview 11.26.1-exodus.13 → 11.26.1-exodus.15
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/android/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +17 -0
- package/android/.idea/jarRepositories.xml +30 -0
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_1_1_0.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_0_2_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_common_2_0_0.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_asynclayoutinflater_asynclayoutinflater_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_autofill_autofill_1_1_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_collection_collection_1_0_0.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_0_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_core_core_1_1_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_customview_customview_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_0_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_fragment_fragment_1_0_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_ui_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_0_0.xml +11 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_slidingpanelayout_slidingpanelayout_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_swiperefreshlayout_swiperefreshlayout_1_0_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_0_1_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_1_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml +13 -0
- package/android/.idea/libraries/Gradle__androidx_webkit_webkit_1_4_0_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__com_facebook_fbjni_fbjni_java_only_0_2_2.xml +13 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_2_5_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_2_5_0_aar.xml +18 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_2_5_0_aar.xml +18 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_2_5_0_aar.xml +18 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_base_2_5_0_aar.xml +18 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_native_2_5_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp3_2_5_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_memory_type_ashmem_2_5_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_memory_type_java_2_5_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_memory_type_native_2_5_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_nativeimagefilters_2_5_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_nativeimagetranscoder_2_5_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_fresco_ui_common_2_5_0_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_infer_annotation_infer_annotation_0_18_0.xml +13 -0
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_68_5_aar.xml +16 -0
- package/android/.idea/libraries/Gradle__com_facebook_soloader_annotation_0_10_3.xml +13 -0
- package/android/.idea/libraries/Gradle__com_facebook_soloader_nativeloader_0_10_3.xml +13 -0
- package/android/.idea/libraries/Gradle__com_facebook_soloader_soloader_0_10_3_aar.xml +15 -0
- package/android/.idea/libraries/Gradle__com_facebook_yoga_proguard_annotations_1_19_0.xml +13 -0
- package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_2.xml +13 -0
- package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_4_9_2.xml +13 -0
- package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_urlconnection_4_9_2.xml +13 -0
- package/android/.idea/libraries/Gradle__com_squareup_okio_okio_2_9_0.xml +13 -0
- package/android/.idea/libraries/Gradle__javax_inject_javax_inject_1.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_annotations_13_0.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_annotations_jvm_1_3_72.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_6_0.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_common_1_6_0.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_4_10.xml +13 -0
- package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_jdk8_1_4_10.xml +13 -0
- package/android/.idea/misc.xml +9 -0
- package/android/.idea/modules/android.androidTest.iml +129 -0
- package/android/.idea/modules/android.iml +40 -0
- package/android/.idea/modules/android.main.iml +124 -0
- package/android/.idea/modules/android.unitTest.iml +124 -0
- package/android/.idea/modules.xml +11 -0
- package/android/.idea/vcs.xml +6 -0
- package/{example/android → android}/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/{example/android → android}/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/gradlew +185 -0
- package/android/local.properties +8 -0
- package/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java +16 -0
- package/android/src/main/java/com/reactnativecommunity/webview/events/TopNewWindowEvent.kt +25 -0
- package/lib/WebView.android.js +4 -3
- package/lib/WebViewShared.d.ts +4 -2
- package/lib/WebViewShared.js +7 -1
- package/lib/WebViewTypes.d.ts +13 -0
- 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/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 -1639
- package/example/.gitignore +0 -14
- package/example/.watchmanconfig +0 -1
- package/example/App.tsx +0 -262
- package/example/android/build.gradle +0 -15
- package/example/android/gradle.properties +0 -34
- package/example/android/gradlew +0 -234
- 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/jest-setups/jest.setup.js +0 -8
- package/jest.config.js +0 -184
- 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 -920
- 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 -13397
- /package/{example/android → android}/gradlew.bat +0 -0
package/example/.gitignore
DELETED
package/example/.watchmanconfig
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
package/example/App.tsx
DELETED
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
import React, {Component} from 'react';
|
|
2
|
-
import {
|
|
3
|
-
StyleSheet,
|
|
4
|
-
SafeAreaView,
|
|
5
|
-
Text,
|
|
6
|
-
TouchableOpacity,
|
|
7
|
-
View,
|
|
8
|
-
Keyboard,
|
|
9
|
-
Button,
|
|
10
|
-
Platform,
|
|
11
|
-
} from 'react-native';
|
|
12
|
-
|
|
13
|
-
import Alerts from './examples/Alerts';
|
|
14
|
-
import Scrolling from './examples/Scrolling';
|
|
15
|
-
import Background from './examples/Background';
|
|
16
|
-
import Downloads from './examples/Downloads';
|
|
17
|
-
import Uploads from './examples/Uploads';
|
|
18
|
-
import Injection from './examples/Injection';
|
|
19
|
-
import LocalPageLoad from './examples/LocalPageLoad';
|
|
20
|
-
import Messaging from './examples/Messaging';
|
|
21
|
-
import NativeWebpage from './examples/NativeWebpage';
|
|
22
|
-
import ApplePay from './examples/ApplePay';
|
|
23
|
-
|
|
24
|
-
const TESTS = {
|
|
25
|
-
Messaging: {
|
|
26
|
-
title: 'Messaging',
|
|
27
|
-
testId: 'messaging',
|
|
28
|
-
description: 'js-webview postMessage messaging test',
|
|
29
|
-
render() {
|
|
30
|
-
return <Messaging />;
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
Alerts: {
|
|
34
|
-
title: 'Alerts',
|
|
35
|
-
testId: 'alerts',
|
|
36
|
-
description: 'Alerts tests',
|
|
37
|
-
render() {
|
|
38
|
-
return <Alerts />;
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
Scrolling: {
|
|
42
|
-
title: 'Scrolling',
|
|
43
|
-
testId: 'scrolling',
|
|
44
|
-
description: 'Scrolling event test',
|
|
45
|
-
render() {
|
|
46
|
-
return <Scrolling />;
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
Background: {
|
|
50
|
-
title: 'Background',
|
|
51
|
-
testId: 'background',
|
|
52
|
-
description: 'Background color test',
|
|
53
|
-
render() {
|
|
54
|
-
return <Background />;
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
Downloads: {
|
|
58
|
-
title: 'Downloads',
|
|
59
|
-
testId: 'downloads',
|
|
60
|
-
description: 'File downloads test',
|
|
61
|
-
render() {
|
|
62
|
-
return <Downloads />;
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
Uploads: {
|
|
66
|
-
title: 'Uploads',
|
|
67
|
-
testId: 'uploads',
|
|
68
|
-
description: 'Upload test',
|
|
69
|
-
render() {
|
|
70
|
-
return <Uploads />;
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
Injection: {
|
|
74
|
-
title: 'Injection',
|
|
75
|
-
testId: 'injection',
|
|
76
|
-
description: 'Injection test',
|
|
77
|
-
render() {
|
|
78
|
-
return <Injection />;
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
PageLoad: {
|
|
82
|
-
title: 'LocalPageLoad',
|
|
83
|
-
testId: 'LocalPageLoad',
|
|
84
|
-
description: 'Local Page load test',
|
|
85
|
-
render() {
|
|
86
|
-
return <LocalPageLoad />;
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
NativeWebpage: {
|
|
90
|
-
title: 'NativeWebpage',
|
|
91
|
-
testId: 'NativeWebpage',
|
|
92
|
-
description: 'Test to open a new webview with a link',
|
|
93
|
-
render() {
|
|
94
|
-
return <NativeWebpage />;
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
ApplePay: {
|
|
98
|
-
title: 'Apple Pay ',
|
|
99
|
-
testId: 'ApplePay',
|
|
100
|
-
description: 'Test to open a apple pay supported page',
|
|
101
|
-
render() {
|
|
102
|
-
return <ApplePay />;
|
|
103
|
-
},
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
type Props = {};
|
|
108
|
-
type State = {restarting: boolean; currentTest: Object};
|
|
109
|
-
|
|
110
|
-
export default class App extends Component<Props, State> {
|
|
111
|
-
state = {
|
|
112
|
-
restarting: false,
|
|
113
|
-
currentTest: TESTS.Alerts,
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
_simulateRestart = () => {
|
|
117
|
-
this.setState({restarting: true}, () => this.setState({restarting: false}));
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
_changeTest = (testName) => {
|
|
121
|
-
this.setState({currentTest: TESTS[testName]});
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
render() {
|
|
125
|
-
const {restarting, currentTest} = this.state;
|
|
126
|
-
return (
|
|
127
|
-
<SafeAreaView style={styles.container}>
|
|
128
|
-
<TouchableOpacity
|
|
129
|
-
style={styles.closeKeyboardView}
|
|
130
|
-
onPress={() => Keyboard.dismiss()}
|
|
131
|
-
testID="closeKeyboard"
|
|
132
|
-
/>
|
|
133
|
-
|
|
134
|
-
<TouchableOpacity
|
|
135
|
-
testID="restart_button"
|
|
136
|
-
onPress={this._simulateRestart}
|
|
137
|
-
style={styles.restartButton}
|
|
138
|
-
activeOpacity={0.6}>
|
|
139
|
-
<Text>Simulate Restart</Text>
|
|
140
|
-
</TouchableOpacity>
|
|
141
|
-
|
|
142
|
-
<View style={styles.testPickerContainer}>
|
|
143
|
-
<Button
|
|
144
|
-
testID="testType_alerts"
|
|
145
|
-
title="Alerts"
|
|
146
|
-
onPress={() => this._changeTest('Alerts')}
|
|
147
|
-
/>
|
|
148
|
-
<Button
|
|
149
|
-
testID="testType_scrolling"
|
|
150
|
-
title="Scrolling"
|
|
151
|
-
onPress={() => this._changeTest('Scrolling')}
|
|
152
|
-
/>
|
|
153
|
-
<Button
|
|
154
|
-
testID="testType_background"
|
|
155
|
-
title="Background"
|
|
156
|
-
onPress={() => this._changeTest('Background')}
|
|
157
|
-
/>
|
|
158
|
-
<Button
|
|
159
|
-
testID="testType_injection"
|
|
160
|
-
title="Injection"
|
|
161
|
-
onPress={() => this._changeTest('Injection')}
|
|
162
|
-
/>
|
|
163
|
-
<Button
|
|
164
|
-
testID="testType_pageLoad"
|
|
165
|
-
title="LocalPageLoad"
|
|
166
|
-
onPress={() => this._changeTest('PageLoad')}
|
|
167
|
-
/>
|
|
168
|
-
<Button
|
|
169
|
-
testID="testType_downloads"
|
|
170
|
-
title="Downloads"
|
|
171
|
-
onPress={() => this._changeTest('Downloads')}
|
|
172
|
-
/>
|
|
173
|
-
{(Platform.OS === 'android') && (
|
|
174
|
-
<Button
|
|
175
|
-
testID="testType_uploads"
|
|
176
|
-
title="Uploads"
|
|
177
|
-
onPress={() => this._changeTest('Uploads')}
|
|
178
|
-
/>
|
|
179
|
-
)}
|
|
180
|
-
<Button
|
|
181
|
-
testID="testType_messaging"
|
|
182
|
-
title="Messaging"
|
|
183
|
-
onPress={() => this._changeTest('Messaging')}
|
|
184
|
-
/>
|
|
185
|
-
<Button
|
|
186
|
-
testID="testType_nativeWebpage"
|
|
187
|
-
title="NativeWebpage"
|
|
188
|
-
onPress={() => this._changeTest('NativeWebpage')}
|
|
189
|
-
/>
|
|
190
|
-
{Platform.OS === 'ios' && (
|
|
191
|
-
<Button
|
|
192
|
-
testID="testType_applePay"
|
|
193
|
-
title="ApplePay"
|
|
194
|
-
onPress={() => this._changeTest('ApplePay')}
|
|
195
|
-
/>
|
|
196
|
-
)}
|
|
197
|
-
</View>
|
|
198
|
-
|
|
199
|
-
{restarting ? null : (
|
|
200
|
-
<View
|
|
201
|
-
testID={`example-${currentTest.testId}`}
|
|
202
|
-
key={currentTest.title}
|
|
203
|
-
style={styles.exampleContainer}>
|
|
204
|
-
<Text style={styles.exampleTitle}>{currentTest.title}</Text>
|
|
205
|
-
<Text style={styles.exampleDescription}>
|
|
206
|
-
{currentTest.description}
|
|
207
|
-
</Text>
|
|
208
|
-
<View style={styles.exampleInnerContainer}>
|
|
209
|
-
{currentTest.render()}
|
|
210
|
-
</View>
|
|
211
|
-
</View>
|
|
212
|
-
)}
|
|
213
|
-
</SafeAreaView>
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
const styles = StyleSheet.create({
|
|
219
|
-
container: {
|
|
220
|
-
flex: 1,
|
|
221
|
-
backgroundColor: '#F5FCFF',
|
|
222
|
-
padding: 8,
|
|
223
|
-
},
|
|
224
|
-
exampleContainer: {
|
|
225
|
-
padding: 16,
|
|
226
|
-
backgroundColor: '#FFF',
|
|
227
|
-
borderColor: '#EEE',
|
|
228
|
-
borderTopWidth: 1,
|
|
229
|
-
borderBottomWidth: 1,
|
|
230
|
-
flex: 1,
|
|
231
|
-
},
|
|
232
|
-
exampleTitle: {
|
|
233
|
-
fontSize: 18,
|
|
234
|
-
},
|
|
235
|
-
exampleDescription: {
|
|
236
|
-
color: '#333333',
|
|
237
|
-
marginBottom: 16,
|
|
238
|
-
},
|
|
239
|
-
exampleInnerContainer: {
|
|
240
|
-
borderColor: '#EEE',
|
|
241
|
-
borderTopWidth: 1,
|
|
242
|
-
paddingTop: 10,
|
|
243
|
-
flex: 1,
|
|
244
|
-
},
|
|
245
|
-
restartButton: {
|
|
246
|
-
padding: 6,
|
|
247
|
-
fontSize: 16,
|
|
248
|
-
borderRadius: 5,
|
|
249
|
-
backgroundColor: '#F3F3F3',
|
|
250
|
-
alignItems: 'center',
|
|
251
|
-
justifyContent: 'center',
|
|
252
|
-
alignSelf: 'flex-end',
|
|
253
|
-
},
|
|
254
|
-
closeKeyboardView: {
|
|
255
|
-
width: 5,
|
|
256
|
-
height: 5,
|
|
257
|
-
},
|
|
258
|
-
testPickerContainer: {
|
|
259
|
-
flexDirection: 'row',
|
|
260
|
-
flexWrap: 'wrap',
|
|
261
|
-
},
|
|
262
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
buildscript {
|
|
2
|
-
def androidTestAppDir = "../../node_modules/react-native-test-app/android"
|
|
3
|
-
apply(from: "${androidTestAppDir}/dependencies.gradle")
|
|
4
|
-
|
|
5
|
-
repositories {
|
|
6
|
-
mavenCentral()
|
|
7
|
-
google()
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
dependencies {
|
|
11
|
-
getReactNativeDependencies().each { dependency ->
|
|
12
|
-
classpath(dependency)
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# Project-wide Gradle settings.
|
|
2
|
-
|
|
3
|
-
# IDE (e.g. Android Studio) users:
|
|
4
|
-
# Gradle settings configured through the IDE *will override*
|
|
5
|
-
# any settings specified in this file.
|
|
6
|
-
# For more details on how to configure your build environment visit
|
|
7
|
-
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
|
8
|
-
|
|
9
|
-
# Specifies the JVM arguments used for the Gradle Daemon. The setting is
|
|
10
|
-
# particularly useful for configuring JVM memory settings for build performance.
|
|
11
|
-
# This does not affect the JVM settings for the Gradle client VM.
|
|
12
|
-
# The default is `-Xmx512m -XX:MaxMetaspaceSize=256m`.
|
|
13
|
-
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
|
14
|
-
|
|
15
|
-
# When configured, Gradle will fork up to org.gradle.workers.max JVMs to execute
|
|
16
|
-
# projects in parallel. To learn more about parallel task execution, see the
|
|
17
|
-
# section on Gradle build performance:
|
|
18
|
-
# https://docs.gradle.org/current/userguide/performance.html#parallel_execution.
|
|
19
|
-
# Default is `false`.
|
|
20
|
-
#org.gradle.parallel=true
|
|
21
|
-
|
|
22
|
-
# AndroidX package structure to make it clearer which packages are bundled with the
|
|
23
|
-
# Android operating system, and which are packaged with your app's APK
|
|
24
|
-
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
|
25
|
-
android.useAndroidX=true
|
|
26
|
-
# Automatically convert third-party libraries to use AndroidX
|
|
27
|
-
android.enableJetifier=true
|
|
28
|
-
|
|
29
|
-
# Version of Flipper to use with React Native. Default value is whatever React
|
|
30
|
-
# Native defaults to. To disable Flipper, set it to `false`.
|
|
31
|
-
#FLIPPER_VERSION=0.125.0
|
|
32
|
-
|
|
33
|
-
# Uncomment the line below if building react-native from source
|
|
34
|
-
#ANDROID_NDK_VERSION=21.4.7075529
|
package/example/android/gradlew
DELETED
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
|
|
3
|
-
#
|
|
4
|
-
# Copyright © 2015-2021 the original authors.
|
|
5
|
-
#
|
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
# you may not use this file except in compliance with the License.
|
|
8
|
-
# You may obtain a copy of the License at
|
|
9
|
-
#
|
|
10
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
#
|
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
# See the License for the specific language governing permissions and
|
|
16
|
-
# limitations under the License.
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
##############################################################################
|
|
20
|
-
#
|
|
21
|
-
# Gradle start up script for POSIX generated by Gradle.
|
|
22
|
-
#
|
|
23
|
-
# Important for running:
|
|
24
|
-
#
|
|
25
|
-
# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
|
|
26
|
-
# noncompliant, but you have some other compliant shell such as ksh or
|
|
27
|
-
# bash, then to run this script, type that shell name before the whole
|
|
28
|
-
# command line, like:
|
|
29
|
-
#
|
|
30
|
-
# ksh Gradle
|
|
31
|
-
#
|
|
32
|
-
# Busybox and similar reduced shells will NOT work, because this script
|
|
33
|
-
# requires all of these POSIX shell features:
|
|
34
|
-
# * functions;
|
|
35
|
-
# * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
|
|
36
|
-
# «${var#prefix}», «${var%suffix}», and «$( cmd )»;
|
|
37
|
-
# * compound commands having a testable exit status, especially «case»;
|
|
38
|
-
# * various built-in commands including «command», «set», and «ulimit».
|
|
39
|
-
#
|
|
40
|
-
# Important for patching:
|
|
41
|
-
#
|
|
42
|
-
# (2) This script targets any POSIX shell, so it avoids extensions provided
|
|
43
|
-
# by Bash, Ksh, etc; in particular arrays are avoided.
|
|
44
|
-
#
|
|
45
|
-
# The "traditional" practice of packing multiple parameters into a
|
|
46
|
-
# space-separated string is a well documented source of bugs and security
|
|
47
|
-
# problems, so this is (mostly) avoided, by progressively accumulating
|
|
48
|
-
# options in "$@", and eventually passing that to Java.
|
|
49
|
-
#
|
|
50
|
-
# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
|
|
51
|
-
# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
|
|
52
|
-
# see the in-line comments for details.
|
|
53
|
-
#
|
|
54
|
-
# There are tweaks for specific operating systems such as AIX, CygWin,
|
|
55
|
-
# Darwin, MinGW, and NonStop.
|
|
56
|
-
#
|
|
57
|
-
# (3) This script is generated from the Groovy template
|
|
58
|
-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
|
59
|
-
# within the Gradle project.
|
|
60
|
-
#
|
|
61
|
-
# You can find Gradle at https://github.com/gradle/gradle/.
|
|
62
|
-
#
|
|
63
|
-
##############################################################################
|
|
64
|
-
|
|
65
|
-
# Attempt to set APP_HOME
|
|
66
|
-
|
|
67
|
-
# Resolve links: $0 may be a link
|
|
68
|
-
app_path=$0
|
|
69
|
-
|
|
70
|
-
# Need this for daisy-chained symlinks.
|
|
71
|
-
while
|
|
72
|
-
APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path
|
|
73
|
-
[ -h "$app_path" ]
|
|
74
|
-
do
|
|
75
|
-
ls=$( ls -ld "$app_path" )
|
|
76
|
-
link=${ls#*' -> '}
|
|
77
|
-
case $link in #(
|
|
78
|
-
/*) app_path=$link ;; #(
|
|
79
|
-
*) app_path=$APP_HOME$link ;;
|
|
80
|
-
esac
|
|
81
|
-
done
|
|
82
|
-
|
|
83
|
-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
|
84
|
-
|
|
85
|
-
APP_NAME="Gradle"
|
|
86
|
-
APP_BASE_NAME=${0##*/}
|
|
87
|
-
|
|
88
|
-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
89
|
-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
90
|
-
|
|
91
|
-
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
|
92
|
-
MAX_FD=maximum
|
|
93
|
-
|
|
94
|
-
warn () {
|
|
95
|
-
echo "$*"
|
|
96
|
-
} >&2
|
|
97
|
-
|
|
98
|
-
die () {
|
|
99
|
-
echo
|
|
100
|
-
echo "$*"
|
|
101
|
-
echo
|
|
102
|
-
exit 1
|
|
103
|
-
} >&2
|
|
104
|
-
|
|
105
|
-
# OS specific support (must be 'true' or 'false').
|
|
106
|
-
cygwin=false
|
|
107
|
-
msys=false
|
|
108
|
-
darwin=false
|
|
109
|
-
nonstop=false
|
|
110
|
-
case "$( uname )" in #(
|
|
111
|
-
CYGWIN* ) cygwin=true ;; #(
|
|
112
|
-
Darwin* ) darwin=true ;; #(
|
|
113
|
-
MSYS* | MINGW* ) msys=true ;; #(
|
|
114
|
-
NONSTOP* ) nonstop=true ;;
|
|
115
|
-
esac
|
|
116
|
-
|
|
117
|
-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
# Determine the Java command to use to start the JVM.
|
|
121
|
-
if [ -n "$JAVA_HOME" ] ; then
|
|
122
|
-
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
|
123
|
-
# IBM's JDK on AIX uses strange locations for the executables
|
|
124
|
-
JAVACMD=$JAVA_HOME/jre/sh/java
|
|
125
|
-
else
|
|
126
|
-
JAVACMD=$JAVA_HOME/bin/java
|
|
127
|
-
fi
|
|
128
|
-
if [ ! -x "$JAVACMD" ] ; then
|
|
129
|
-
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
|
130
|
-
|
|
131
|
-
Please set the JAVA_HOME variable in your environment to match the
|
|
132
|
-
location of your Java installation."
|
|
133
|
-
fi
|
|
134
|
-
else
|
|
135
|
-
JAVACMD=java
|
|
136
|
-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
|
137
|
-
|
|
138
|
-
Please set the JAVA_HOME variable in your environment to match the
|
|
139
|
-
location of your Java installation."
|
|
140
|
-
fi
|
|
141
|
-
|
|
142
|
-
# Increase the maximum file descriptors if we can.
|
|
143
|
-
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
|
144
|
-
case $MAX_FD in #(
|
|
145
|
-
max*)
|
|
146
|
-
MAX_FD=$( ulimit -H -n ) ||
|
|
147
|
-
warn "Could not query maximum file descriptor limit"
|
|
148
|
-
esac
|
|
149
|
-
case $MAX_FD in #(
|
|
150
|
-
'' | soft) :;; #(
|
|
151
|
-
*)
|
|
152
|
-
ulimit -n "$MAX_FD" ||
|
|
153
|
-
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
|
154
|
-
esac
|
|
155
|
-
fi
|
|
156
|
-
|
|
157
|
-
# Collect all arguments for the java command, stacking in reverse order:
|
|
158
|
-
# * args from the command line
|
|
159
|
-
# * the main class name
|
|
160
|
-
# * -classpath
|
|
161
|
-
# * -D...appname settings
|
|
162
|
-
# * --module-path (only if needed)
|
|
163
|
-
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
|
|
164
|
-
|
|
165
|
-
# For Cygwin or MSYS, switch paths to Windows format before running java
|
|
166
|
-
if "$cygwin" || "$msys" ; then
|
|
167
|
-
APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
|
|
168
|
-
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
|
|
169
|
-
|
|
170
|
-
JAVACMD=$( cygpath --unix "$JAVACMD" )
|
|
171
|
-
|
|
172
|
-
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
|
173
|
-
for arg do
|
|
174
|
-
if
|
|
175
|
-
case $arg in #(
|
|
176
|
-
-*) false ;; # don't mess with options #(
|
|
177
|
-
/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath
|
|
178
|
-
[ -e "$t" ] ;; #(
|
|
179
|
-
*) false ;;
|
|
180
|
-
esac
|
|
181
|
-
then
|
|
182
|
-
arg=$( cygpath --path --ignore --mixed "$arg" )
|
|
183
|
-
fi
|
|
184
|
-
# Roll the args list around exactly as many times as the number of
|
|
185
|
-
# args, so each arg winds up back in the position where it started, but
|
|
186
|
-
# possibly modified.
|
|
187
|
-
#
|
|
188
|
-
# NB: a `for` loop captures its iteration list before it begins, so
|
|
189
|
-
# changing the positional parameters here affects neither the number of
|
|
190
|
-
# iterations, nor the values presented in `arg`.
|
|
191
|
-
shift # remove old arg
|
|
192
|
-
set -- "$@" "$arg" # push replacement arg
|
|
193
|
-
done
|
|
194
|
-
fi
|
|
195
|
-
|
|
196
|
-
# Collect all arguments for the java command;
|
|
197
|
-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
|
198
|
-
# shell script including quotes and variable substitutions, so put them in
|
|
199
|
-
# double quotes to make sure that they get re-expanded; and
|
|
200
|
-
# * put everything else in single quotes, so that it's not re-expanded.
|
|
201
|
-
|
|
202
|
-
set -- \
|
|
203
|
-
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
|
204
|
-
-classpath "$CLASSPATH" \
|
|
205
|
-
org.gradle.wrapper.GradleWrapperMain \
|
|
206
|
-
"$@"
|
|
207
|
-
|
|
208
|
-
# Use "xargs" to parse quoted args.
|
|
209
|
-
#
|
|
210
|
-
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
|
|
211
|
-
#
|
|
212
|
-
# In Bash we could simply go:
|
|
213
|
-
#
|
|
214
|
-
# readarray ARGS < <( xargs -n1 <<<"$var" ) &&
|
|
215
|
-
# set -- "${ARGS[@]}" "$@"
|
|
216
|
-
#
|
|
217
|
-
# but POSIX shell has neither arrays nor command substitution, so instead we
|
|
218
|
-
# post-process each arg (as a line of input to sed) to backslash-escape any
|
|
219
|
-
# character that might be a shell metacharacter, then use eval to reverse
|
|
220
|
-
# that process (while maintaining the separation between arguments), and wrap
|
|
221
|
-
# the whole thing up as a single "set" statement.
|
|
222
|
-
#
|
|
223
|
-
# This will of course break if any of these variables contains a newline or
|
|
224
|
-
# an unmatched quote.
|
|
225
|
-
#
|
|
226
|
-
|
|
227
|
-
eval "set -- $(
|
|
228
|
-
printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
|
|
229
|
-
xargs -n1 |
|
|
230
|
-
sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
|
|
231
|
-
tr '\n' ' '
|
|
232
|
-
)" '"$@"'
|
|
233
|
-
|
|
234
|
-
exec "$JAVACMD" "$@"
|
package/example/app.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "WebviewExample",
|
|
3
|
-
"displayName": "WebviewExample",
|
|
4
|
-
"components": [
|
|
5
|
-
{
|
|
6
|
-
"appKey": "WebviewExample",
|
|
7
|
-
"displayName": "WebviewExample"
|
|
8
|
-
}
|
|
9
|
-
],
|
|
10
|
-
"resources": {
|
|
11
|
-
"android": [
|
|
12
|
-
"dist/res",
|
|
13
|
-
"dist/main.android.jsbundle"
|
|
14
|
-
],
|
|
15
|
-
"ios": [
|
|
16
|
-
"dist/assets",
|
|
17
|
-
"dist/main.ios.jsbundle"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
}
|
package/example/assets/test.html
DELETED
package/example/babel.config.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import React, {Component} from 'react';
|
|
2
|
-
import {Text, View} from 'react-native';
|
|
3
|
-
|
|
4
|
-
import WebView from 'react-native-webview';
|
|
5
|
-
|
|
6
|
-
const HTML = `
|
|
7
|
-
<!DOCTYPE html>\n
|
|
8
|
-
<html>
|
|
9
|
-
<head>
|
|
10
|
-
<title>Alerts</title>
|
|
11
|
-
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
12
|
-
<meta name="viewport" content="width=320, user-scalable=no">
|
|
13
|
-
<style type="text/css">
|
|
14
|
-
body {
|
|
15
|
-
margin: 0;
|
|
16
|
-
padding: 0;
|
|
17
|
-
font: 62.5% arial, sans-serif;
|
|
18
|
-
background: #ccc;
|
|
19
|
-
}
|
|
20
|
-
</style>
|
|
21
|
-
</head>
|
|
22
|
-
<body>
|
|
23
|
-
<button onclick="showAlert()">Show alert</button>
|
|
24
|
-
<button onclick="showConfirm()">Show confirm</button>
|
|
25
|
-
<button onclick="showPrompt()">Show prompt</button>
|
|
26
|
-
<p id="demo"></p>
|
|
27
|
-
<script>
|
|
28
|
-
function showAlert() {
|
|
29
|
-
alert("Hello! I am an alert box!");
|
|
30
|
-
document.getElementById("demo").innerHTML = "Alert dismissed!";
|
|
31
|
-
}
|
|
32
|
-
function showConfirm() {
|
|
33
|
-
var response;
|
|
34
|
-
if (confirm("Press a button!")) {
|
|
35
|
-
response = "You pressed OK on confirm!";
|
|
36
|
-
} else {
|
|
37
|
-
response = "You pressed Cancel on confirm!";
|
|
38
|
-
}
|
|
39
|
-
document.getElementById("demo").innerHTML = response;
|
|
40
|
-
}
|
|
41
|
-
function showPrompt() {
|
|
42
|
-
var message;
|
|
43
|
-
const name = prompt("Please enter your name", "Name");
|
|
44
|
-
if (name !== null) {
|
|
45
|
-
message = "Hello " + name;
|
|
46
|
-
} else {
|
|
47
|
-
message = "You pressed Cancel on prompt!";
|
|
48
|
-
}
|
|
49
|
-
document.getElementById("demo").innerHTML = message;
|
|
50
|
-
}
|
|
51
|
-
</script>
|
|
52
|
-
</body>
|
|
53
|
-
</html>
|
|
54
|
-
`;
|
|
55
|
-
|
|
56
|
-
type Props = {};
|
|
57
|
-
type State = {};
|
|
58
|
-
|
|
59
|
-
export default class Alerts extends Component<Props, State> {
|
|
60
|
-
state = {};
|
|
61
|
-
|
|
62
|
-
render() {
|
|
63
|
-
return (
|
|
64
|
-
<View style={{ height: 120 }}>
|
|
65
|
-
<WebView
|
|
66
|
-
source={{html: HTML}}
|
|
67
|
-
automaticallyAdjustContentInsets={false}
|
|
68
|
-
/>
|
|
69
|
-
</View>
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
}
|