@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.
Files changed (176) hide show
  1. package/android/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
  2. package/android/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
  3. package/android/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
  4. package/android/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
  5. package/android/.gradle/7.1/fileChanges/last-build.bin +0 -0
  6. package/android/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
  7. package/android/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
  8. package/android/.gradle/7.1/gc.properties +0 -0
  9. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  10. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  11. package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  12. package/android/.gradle/checksums/checksums.lock +0 -0
  13. package/android/.gradle/checksums/md5-checksums.bin +0 -0
  14. package/android/.gradle/checksums/sha1-checksums.bin +0 -0
  15. package/android/.gradle/vcs-1/gc.properties +0 -0
  16. package/android/.idea/compiler.xml +6 -0
  17. package/android/.idea/gradle.xml +17 -0
  18. package/android/.idea/jarRepositories.xml +30 -0
  19. package/android/.idea/libraries/Gradle__androidx_annotation_annotation_1_1_0.xml +13 -0
  20. package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_0_2_aar.xml +16 -0
  21. package/android/.idea/libraries/Gradle__androidx_arch_core_core_common_2_0_0.xml +11 -0
  22. package/android/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_0_0_aar.xml +13 -0
  23. package/android/.idea/libraries/Gradle__androidx_asynclayoutinflater_asynclayoutinflater_1_0_0_aar.xml +13 -0
  24. package/android/.idea/libraries/Gradle__androidx_autofill_autofill_1_1_0_aar.xml +16 -0
  25. package/android/.idea/libraries/Gradle__androidx_collection_collection_1_0_0.xml +11 -0
  26. package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_0_0_aar.xml +16 -0
  27. package/android/.idea/libraries/Gradle__androidx_core_core_1_1_0_aar.xml +16 -0
  28. package/android/.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml +13 -0
  29. package/android/.idea/libraries/Gradle__androidx_customview_customview_1_0_0_aar.xml +13 -0
  30. package/android/.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml +13 -0
  31. package/android/.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_0_0_aar.xml +16 -0
  32. package/android/.idea/libraries/Gradle__androidx_fragment_fragment_1_0_0_aar.xml +16 -0
  33. package/android/.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml +13 -0
  34. package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_ui_1_0_0_aar.xml +13 -0
  35. package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml +13 -0
  36. package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_0_0.xml +11 -0
  37. package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_0_0_aar.xml +13 -0
  38. package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_0_0_aar.xml +13 -0
  39. package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_0_0_aar.xml +13 -0
  40. package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_0_0_aar.xml +13 -0
  41. package/android/.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml +13 -0
  42. package/android/.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml +13 -0
  43. package/android/.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml +16 -0
  44. package/android/.idea/libraries/Gradle__androidx_slidingpanelayout_slidingpanelayout_1_0_0_aar.xml +13 -0
  45. package/android/.idea/libraries/Gradle__androidx_swiperefreshlayout_swiperefreshlayout_1_0_0_aar.xml +16 -0
  46. package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_0_1_aar.xml +13 -0
  47. package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_0_0_aar.xml +13 -0
  48. package/android/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_1_0_aar.xml +13 -0
  49. package/android/.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml +13 -0
  50. package/android/.idea/libraries/Gradle__androidx_webkit_webkit_1_4_0_aar.xml +16 -0
  51. package/android/.idea/libraries/Gradle__com_facebook_fbjni_fbjni_java_only_0_2_2.xml +13 -0
  52. package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_2_5_0_aar.xml +15 -0
  53. package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_2_5_0_aar.xml +18 -0
  54. package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_2_5_0_aar.xml +18 -0
  55. package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_2_5_0_aar.xml +18 -0
  56. package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_base_2_5_0_aar.xml +18 -0
  57. package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_native_2_5_0_aar.xml +15 -0
  58. package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp3_2_5_0_aar.xml +15 -0
  59. package/android/.idea/libraries/Gradle__com_facebook_fresco_memory_type_ashmem_2_5_0_aar.xml +15 -0
  60. package/android/.idea/libraries/Gradle__com_facebook_fresco_memory_type_java_2_5_0_aar.xml +15 -0
  61. package/android/.idea/libraries/Gradle__com_facebook_fresco_memory_type_native_2_5_0_aar.xml +15 -0
  62. package/android/.idea/libraries/Gradle__com_facebook_fresco_nativeimagefilters_2_5_0_aar.xml +15 -0
  63. package/android/.idea/libraries/Gradle__com_facebook_fresco_nativeimagetranscoder_2_5_0_aar.xml +15 -0
  64. package/android/.idea/libraries/Gradle__com_facebook_fresco_ui_common_2_5_0_aar.xml +15 -0
  65. package/android/.idea/libraries/Gradle__com_facebook_infer_annotation_infer_annotation_0_18_0.xml +13 -0
  66. package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_68_5_aar.xml +16 -0
  67. package/android/.idea/libraries/Gradle__com_facebook_soloader_annotation_0_10_3.xml +13 -0
  68. package/android/.idea/libraries/Gradle__com_facebook_soloader_nativeloader_0_10_3.xml +13 -0
  69. package/android/.idea/libraries/Gradle__com_facebook_soloader_soloader_0_10_3_aar.xml +15 -0
  70. package/android/.idea/libraries/Gradle__com_facebook_yoga_proguard_annotations_1_19_0.xml +13 -0
  71. package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_2.xml +13 -0
  72. package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_4_9_2.xml +13 -0
  73. package/android/.idea/libraries/Gradle__com_squareup_okhttp3_okhttp_urlconnection_4_9_2.xml +13 -0
  74. package/android/.idea/libraries/Gradle__com_squareup_okio_okio_2_9_0.xml +13 -0
  75. package/android/.idea/libraries/Gradle__javax_inject_javax_inject_1.xml +13 -0
  76. package/android/.idea/libraries/Gradle__org_jetbrains_annotations_13_0.xml +13 -0
  77. package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_annotations_jvm_1_3_72.xml +13 -0
  78. package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_6_0.xml +13 -0
  79. package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_common_1_6_0.xml +13 -0
  80. package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_jdk7_1_4_10.xml +13 -0
  81. package/android/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_jdk8_1_4_10.xml +13 -0
  82. package/android/.idea/misc.xml +9 -0
  83. package/android/.idea/modules/android.androidTest.iml +129 -0
  84. package/android/.idea/modules/android.iml +40 -0
  85. package/android/.idea/modules/android.main.iml +124 -0
  86. package/android/.idea/modules/android.unitTest.iml +124 -0
  87. package/android/.idea/modules.xml +11 -0
  88. package/android/.idea/vcs.xml +6 -0
  89. package/{example/android → android}/gradle/wrapper/gradle-wrapper.jar +0 -0
  90. package/{example/android → android}/gradle/wrapper/gradle-wrapper.properties +1 -1
  91. package/android/gradlew +185 -0
  92. package/android/local.properties +8 -0
  93. package/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java +16 -0
  94. package/android/src/main/java/com/reactnativecommunity/webview/events/TopNewWindowEvent.kt +25 -0
  95. package/lib/WebView.android.js +4 -3
  96. package/lib/WebViewShared.d.ts +4 -2
  97. package/lib/WebViewShared.js +7 -1
  98. package/lib/WebViewTypes.d.ts +13 -0
  99. package/package.json +1 -1
  100. package/.all-contributorsrc +0 -185
  101. package/.circleci/config.yml +0 -66
  102. package/.eslintignore +0 -2
  103. package/.eslintrc.js +0 -94
  104. package/.flowconfig +0 -88
  105. package/.flowconfig.android +0 -88
  106. package/.gitattributes +0 -12
  107. package/.github/CODEOWNERS +0 -1
  108. package/.github/ISSUE_TEMPLATE/bug-report.md +0 -42
  109. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -30
  110. package/.github/workflows/android-ci.yml +0 -35
  111. package/.github/workflows/detox.yml +0 -20
  112. package/.github/workflows/ios-ci.yml +0 -31
  113. package/.github/workflows/scripts/install-vs-features.ps1 +0 -108
  114. package/.github/workflows/stale.yml +0 -17
  115. package/.gitignore +0 -62
  116. package/.prettierrc.js +0 -10
  117. package/.releaserc +0 -15
  118. package/.vscode/settings.json +0 -9
  119. package/babel.config.js +0 -11
  120. package/bin/setup +0 -26
  121. package/docs/Contributing.md +0 -102
  122. package/docs/Custom-Android.md +0 -222
  123. package/docs/Custom-iOS.md +0 -236
  124. package/docs/Debugging.md +0 -101
  125. package/docs/Getting-Started.md +0 -142
  126. package/docs/Guide.md +0 -613
  127. package/docs/Reference.md +0 -1639
  128. package/example/.gitignore +0 -14
  129. package/example/.watchmanconfig +0 -1
  130. package/example/App.tsx +0 -262
  131. package/example/android/build.gradle +0 -15
  132. package/example/android/gradle.properties +0 -34
  133. package/example/android/gradlew +0 -234
  134. package/example/android/settings.gradle +0 -12
  135. package/example/app.json +0 -20
  136. package/example/assets/test.html +0 -9
  137. package/example/babel.config.js +0 -3
  138. package/example/examples/Alerts.tsx +0 -72
  139. package/example/examples/ApplePay.tsx +0 -23
  140. package/example/examples/Background.tsx +0 -54
  141. package/example/examples/Downloads.tsx +0 -57
  142. package/example/examples/Injection.tsx +0 -161
  143. package/example/examples/LocalPageLoad.tsx +0 -16
  144. package/example/examples/Messaging.tsx +0 -63
  145. package/example/examples/NativeWebpage.tsx +0 -22
  146. package/example/examples/Scrolling.tsx +0 -68
  147. package/example/examples/Uploads.tsx +0 -69
  148. package/example/index.js +0 -9
  149. package/example/ios/Podfile +0 -8
  150. package/example/ios/Podfile.lock +0 -445
  151. package/jest-setups/jest.setup.js +0 -8
  152. package/jest.config.js +0 -184
  153. package/lib/WebView.android.d.ts.map +0 -1
  154. package/lib/WebView.d.ts.map +0 -1
  155. package/lib/WebView.ios.d.ts.map +0 -1
  156. package/lib/WebView.styles.d.ts.map +0 -1
  157. package/lib/WebViewNativeComponent.android.d.ts.map +0 -1
  158. package/lib/WebViewNativeComponent.ios.d.ts.map +0 -1
  159. package/lib/WebViewShared.d.ts.map +0 -1
  160. package/lib/WebViewTypes.d.ts.map +0 -1
  161. package/lib/index.d.ts.map +0 -1
  162. package/metro.config.js +0 -57
  163. package/src/WebView.android.tsx +0 -246
  164. package/src/WebView.ios.tsx +0 -221
  165. package/src/WebView.styles.ts +0 -44
  166. package/src/WebView.tsx +0 -18
  167. package/src/WebViewNativeComponent.android.ts +0 -8
  168. package/src/WebViewNativeComponent.ios.ts +0 -8
  169. package/src/WebViewShared.tsx +0 -257
  170. package/src/WebViewTypes.ts +0 -920
  171. package/src/__tests__/WebViewShared-test.js +0 -208
  172. package/src/__tests__/__snapshots__/WebViewShared-test.js.snap +0 -8
  173. package/src/index.ts +0 -4
  174. package/tsconfig.json +0 -24
  175. package/yarn.lock +0 -13397
  176. /package/{example/android → android}/gradlew.bat +0 -0
package/.eslintrc.js DELETED
@@ -1,94 +0,0 @@
1
- module.exports = {
2
- // Airbnb is the base, prettier is here so that eslint doesn't conflict with prettier
3
- extends: ['airbnb', 'prettier', 'prettier/react', 'plugin:react-hooks/recommended'],
4
- parser: '@typescript-eslint/parser',
5
- plugins: ['react', 'react-native', 'import', '@typescript-eslint'],
6
- rules: {
7
- 'no-console': 'off',
8
- 'no-underscore-dangle': 'off',
9
- // Lines will be broken before binary operators
10
- 'operator-linebreak': ['error', 'before'],
11
- // Allow imports from dev and peer dependencies
12
- 'import/no-extraneous-dependencies': [
13
- 'error',
14
- { devDependencies: true, peerDependencies: true },
15
- ],
16
- 'react/jsx-filename-extension': ['error', { extensions: ['.tsx'] }],
17
- // This rule doesn't play nice with Prettier
18
- 'react/jsx-one-expression-per-line': 'off',
19
- // This rule doesn't play nice with Prettier
20
- 'react/jsx-wrap-multilines': 'off',
21
- // Remove this rule because we only destructure props, but never state
22
- 'react/destructuring-assignment': 'off',
23
- 'react/prop-types': 'off',
24
- 'react/jsx-props-no-spreading': 'off',
25
- 'react/static-property-placement': 'off',
26
- 'react/state-in-constructor': 'off',
27
- '@typescript-eslint/adjacent-overload-signatures': 'error',
28
- '@typescript-eslint/array-type': [
29
- 'error',
30
- {
31
- default: 'array',
32
- },
33
- ],
34
- '@typescript-eslint/generic-type-naming': ['error', '^[a-zA-Z]+$'],
35
- '@typescript-eslint/no-array-constructor': 'error',
36
- '@typescript-eslint/no-empty-interface': 'error',
37
- '@typescript-eslint/no-explicit-any': 'error',
38
- '@typescript-eslint/no-extraneous-class': 'error',
39
- '@typescript-eslint/no-inferrable-types': 'error',
40
- '@typescript-eslint/no-misused-new': 'error',
41
- '@typescript-eslint/no-namespace': 'error',
42
- '@typescript-eslint/no-non-null-assertion': 'error',
43
- '@typescript-eslint/consistent-type-assertions': [
44
- 'error',
45
- {
46
- assertionStyle: 'as',
47
- },
48
- ],
49
- '@typescript-eslint/no-parameter-properties': 'error',
50
- '@typescript-eslint/no-this-alias': 'error',
51
- '@typescript-eslint/triple-slash-reference': [
52
- 'error',
53
- { path: 'never', types: 'never', lib: 'never' },
54
- ],
55
- '@typescript-eslint/no-type-alias': [
56
- 'error',
57
- {
58
- allowAliases: 'always',
59
- allowCallbacks: 'always',
60
- allowMappedTypes: 'always',
61
- },
62
- ],
63
- '@typescript-eslint/no-unused-vars': [
64
- 'error',
65
- { ignoreRestSiblings: true },
66
- ],
67
- '@typescript-eslint/consistent-type-definitions': [
68
- 'error',
69
- 'interface',
70
- ],
71
- '@typescript-eslint/prefer-namespace-keyword': 'error',
72
- '@typescript-eslint/type-annotation-spacing': 'error',
73
- },
74
- settings: {
75
- 'import/resolver': {
76
- node: {
77
- extensions: [
78
- '.js',
79
- '.android.js',
80
- '.ios.js',
81
- '.jsx',
82
- '.android.jsx',
83
- '.ios.jsx',
84
- '.tsx',
85
- '.ts',
86
- '.android.tsx',
87
- '.android.ts',
88
- '.ios.tsx',
89
- '.ios.ts',
90
- ],
91
- },
92
- },
93
- },
94
- };
package/.flowconfig DELETED
@@ -1,88 +0,0 @@
1
- [ignore]
2
- ; This flowconfig is forked by platform - the only difference between them is which suffix is ignored.
3
- .*/*[.]android.js
4
- ;.*/*[.]ios.js
5
-
6
- ; Ignore templates for 'react-native init'
7
- .*/local-cli/templates/.*
8
-
9
- ; Ignore the Dangerfile
10
- node_modules/react-native/bots/dangerfile.js
11
-
12
- ; Ignore "BUCK" generated dirs
13
- node_modules/react-native/\.buckd/
14
-
15
- ; Ignore unexpected extra "@providesModule"
16
- .*/node_modules/.*/node_modules/fbjs/.*
17
-
18
- ; Ignore duplicate module providers
19
- ; For RN Apps installed via npm, "Libraries" folder is inside
20
- ; "node_modules/react-native" but in the source repo it is in the root
21
- .*/Libraries/react-native/React.js
22
-
23
- ; Ignore polyfills
24
- .*/Libraries/polyfills/.*
25
-
26
- ; Ignore metro
27
- .*/node_modules/metro/.*
28
-
29
- ; Ignore "config-chain"'s test folder - it has a corrupt JSON file that's tripping flow
30
- .*/node_modules/config-chain/test/*.
31
-
32
- ; These should not be required directly
33
- ; require from fbjs/lib instead: require('fbjs/lib/invariant')
34
- .*/node_modules/invariant/.*
35
- .*/node_modules/warning/.*
36
-
37
- [include]
38
-
39
- [libs]
40
- node_modules/react-native/Libraries/react-native/react-native-interface.js
41
- node_modules/react-native/flow/
42
- node_modules/react-native/flow-github/
43
-
44
- [lints]
45
-
46
- [options]
47
- emoji=true
48
-
49
- esproposal.optional_chaining=enable
50
- esproposal.nullish_coalescing=enable
51
-
52
- module.system=haste
53
- module.system.haste.use_name_reducers=true
54
- # keep the following in sync with server/haste/hasteImpl.js
55
- # get basename
56
- module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
57
- # strip .js or .js.flow suffix
58
- module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
59
- # strip platform suffix
60
- module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
61
- module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
62
- module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
63
- module.system.haste.paths.blacklist=.*/__tests__/.*
64
- module.system.haste.paths.blacklist=.*/__mocks__/.*
65
- module.system.haste.paths.whitelist=<PROJECT_ROOT>/js/.*
66
- module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
67
- module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
68
- module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
69
- module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
70
- ; Surpress error `Duplicate module provider` until the slimmening is done
71
- module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Components/WebView/*.
72
- module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Components/WKWebView/*.
73
-
74
- munge_underscores=true
75
-
76
- module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
77
-
78
- suppress_type=$FlowIssue
79
- suppress_type=$FlowFixMe
80
- suppress_type=$FlowFixMeProps
81
- suppress_type=$FlowFixMeState
82
-
83
- suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_android\\)?_oss|react_native\\(_android\\)?_fb][a-z,_]*\\)?)\\)
84
- suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_android\\)?_oss|react_native\\(_android\\)?_fb][a-z,_]*\\)?)\\)?:? #[0-9]+
85
- suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
86
- suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
87
-
88
- [strict]
@@ -1,88 +0,0 @@
1
- [ignore]
2
- ; This flowconfig is forked by platform - the only difference between them is which suffix is ignored.
3
- ;.*/*[.]android.js
4
- .*/*[.]ios.js
5
-
6
- ; Ignore templates for 'react-native init'
7
- .*/local-cli/templates/.*
8
-
9
- ; Ignore the Dangerfile
10
- node_modules/react-native/bots/dangerfile.js
11
-
12
- ; Ignore "BUCK" generated dirs
13
- node_modules/react-native/\.buckd/
14
-
15
- ; Ignore unexpected extra "@providesModule"
16
- .*/node_modules/.*/node_modules/fbjs/.*
17
-
18
- ; Ignore duplicate module providers
19
- ; For RN Apps installed via npm, "Libraries" folder is inside
20
- ; "node_modules/react-native" but in the source repo it is in the root
21
- .*/Libraries/react-native/React.js
22
-
23
- ; Ignore polyfills
24
- .*/Libraries/polyfills/.*
25
-
26
- ; Ignore metro
27
- .*/node_modules/metro/.*
28
-
29
- ; Ignore "config-chain"'s test folder - it has a corrupt JSON file that's tripping flow
30
- .*/node_modules/config-chain/test/*.
31
-
32
- ; These should not be required directly
33
- ; require from fbjs/lib instead: require('fbjs/lib/invariant')
34
- .*/node_modules/invariant/.*
35
- .*/node_modules/warning/.*
36
-
37
- [include]
38
-
39
- [libs]
40
- node_modules/react-native/Libraries/react-native/react-native-interface.js
41
- node_modules/react-native/flow/
42
- node_modules/react-native/flow-github/
43
-
44
- [lints]
45
-
46
- [options]
47
- emoji=true
48
-
49
- esproposal.optional_chaining=enable
50
- esproposal.nullish_coalescing=enable
51
-
52
- module.system=haste
53
- module.system.haste.use_name_reducers=true
54
- # keep the following in sync with server/haste/hasteImpl.js
55
- # get basename
56
- module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
57
- # strip .js or .js.flow suffix
58
- module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
59
- # strip platform suffix
60
- module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
61
- module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
62
- module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
63
- module.system.haste.paths.blacklist=.*/__tests__/.*
64
- module.system.haste.paths.blacklist=.*/__mocks__/.*
65
- module.system.haste.paths.whitelist=<PROJECT_ROOT>/js/.*
66
- module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*
67
- module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/RNTester/.*
68
- module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/IntegrationTests/.*
69
- module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
70
- ; Surpress error `Duplicate module provider` until the slimmening is done
71
- module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Components/WebView/*.
72
- module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Components/WKWebView/*.
73
-
74
- munge_underscores=true
75
-
76
- module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
77
-
78
- suppress_type=$FlowIssue
79
- suppress_type=$FlowFixMe
80
- suppress_type=$FlowFixMeProps
81
- suppress_type=$FlowFixMeState
82
-
83
- suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_android\\)?_oss|react_native\\(_android\\)?_fb][a-z,_]*\\)?)\\)
84
- suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*[react_native\\(_android\\)?_oss|react_native\\(_android\\)?_fb][a-z,_]*\\)?)\\)?:? #[0-9]+
85
- suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
86
- suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
87
-
88
- [strict]
package/.gitattributes DELETED
@@ -1,12 +0,0 @@
1
- * text=auto
2
-
3
- *.bat text eol=crlf
4
- *.def text eol=crlf
5
- *.filters text eol=crlf
6
- *.idl text eol=crlf
7
- *.props text eol=crlf
8
- *.ps1 text eol=crlf
9
- *.sln text eol=crlf
10
- *.vcxproj text eol=crlf
11
- *.xaml text eol=crlf
12
-
@@ -1 +0,0 @@
1
- * @titozzz @jamonholmgren
@@ -1,42 +0,0 @@
1
- ---
2
- name: Bug report
3
- about: Something is not working as expected
4
- title: ''
5
- labels: 'Type: bug report'
6
- assignees: ''
7
-
8
- ---
9
-
10
- <!---
11
- Hello and thank you for taking the time to report a bug.
12
- This is a community repository, meaning that it's everyone's responsibility to address bugs and send pull requests.
13
- Maintainers will be here to help/guide you if you have questions.
14
- Please search in the opened issues before submitting a new one.
15
- Issues with no activity for a long time will be closed.
16
- --->
17
- **Bug description:**
18
- <!---
19
- A clear and concise description of what the bug is.
20
- --->
21
-
22
- **To Reproduce:**
23
- <!---
24
- Here you should put a link to a repository with a reproduction of the bug
25
- Please also describe the steps required for the bug to happen
26
- --->
27
-
28
- **Expected behavior:**
29
- <!---
30
- A clear and concise description of what you expected to happen.
31
- --->
32
-
33
- **Screenshots/Videos:**
34
- <!---
35
- If applicable, add screenshots to help explain your problem.
36
- --->
37
-
38
- **Environment:**
39
- - OS:
40
- - OS version:
41
- - react-native version:
42
- - react-native-webview version:
@@ -1,30 +0,0 @@
1
- ---
2
- name: Feature request
3
- about: Suggest an idea for this project
4
- title: ''
5
- labels: 'Type: feature request'
6
- assignees: ''
7
-
8
- ---
9
-
10
- <!---
11
- Hello and thank you for taking the time to report a bug.
12
- This is a community repository, meaning that it's everyone's responsibility to address bugs and send pull requests.
13
- Maintainers will be here to help/guide you if you have questions.
14
- Please search in the opened issues before submitting a new one.
15
- Issues with no activity for a long time will be closed.
16
- --->
17
- **Is your feature request related to a problem? If so, Please describe.**
18
- <!---
19
- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
20
- --->
21
-
22
- **Describe the solutions you came up with**
23
- <!---
24
- A clear and concise description of what you want to happen.
25
- --->
26
-
27
- **Additional context**
28
- <!---
29
- Add any other context about the feature request here.
30
- --->
@@ -1,35 +0,0 @@
1
- name: Android
2
- on: [push, pull_request]
3
- jobs:
4
- build:
5
- strategy:
6
- matrix:
7
- os: [ubuntu-latest]
8
- runs-on: ${{ matrix.os }}
9
- steps:
10
- - name: Checkout
11
- uses: actions/checkout@v2
12
- - name: Set up Node.js
13
- uses: actions/setup-node@v2.5.1
14
- with:
15
- node-version: 16
16
- - name: Set up JDK
17
- uses: actions/setup-java@v2.5.0
18
- with:
19
- distribution: temurin
20
- java-version: 11
21
- - name: Cache /node_modules
22
- uses: actions/cache@v2
23
- with:
24
- path: node_modules
25
- key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
26
- - name: Install npm dependencies
27
- run: yarn --frozen-lockfile
28
- shell: bash
29
- - name: Build Android test app
30
- uses: gradle/gradle-build-action@v2.1.3
31
- with:
32
- gradle-version: wrapper
33
- arguments: --no-daemon clean build check test
34
- build-root-directory: example/android
35
- timeout-minutes: 60
@@ -1,20 +0,0 @@
1
- name: 'Detox CI Tests'
2
- on: [push, pull_request]
3
-
4
- jobs:
5
- tests:
6
- name: 'Running tests'
7
- runs-on: 'macOS-latest'
8
- steps:
9
- - uses: actions/checkout@master
10
- - uses: actions/setup-node@master
11
- with:
12
- node-version: 14
13
- - name: Setup - Install Yarn
14
- run: YARN_GPG=NO curl -o- -L https://yarnpkg.com/install.sh | bash
15
- - name: Setup - Install NPM Dependencies
16
- run: yarn --frozen-lockfile
17
- - name: Setup - Install CocoaPods CLI
18
- run: sudo gem install cocoapods -v 1.8.4
19
- - name: Run tests
20
- run: yarn ci
@@ -1,31 +0,0 @@
1
- name: iOS
2
- on: [push, pull_request]
3
- jobs:
4
- build:
5
- runs-on: macos-latest
6
- steps:
7
- - name: Checkout
8
- uses: actions/checkout@v2
9
- - name: Set up Node.js
10
- uses: actions/setup-node@v2.5.1
11
- with:
12
- node-version: 16
13
- - name: Cache /node_modules
14
- uses: actions/cache@v2
15
- with:
16
- path: node_modules
17
- key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
18
- - name: Install npm dependencies
19
- run: yarn --frozen-lockfile
20
- - name: Install Pods
21
- run: pod install
22
- working-directory: example/ios
23
- - name: Build iOS test app
24
- run: |
25
- device_name='iPhone 13'
26
- device=$(xcrun simctl list devices "${device_name}" available | grep "${device_name} (")
27
- re='\(([-0-9A-Fa-f]+)\)'
28
- [[ $device =~ $re ]] || exit 1
29
- xcodebuild -workspace WebviewExample.xcworkspace -scheme ReactTestApp -destination "platform=iOS Simulator,id=${BASH_REMATCH[1]}" CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO build
30
- working-directory: example/ios
31
- timeout-minutes: 60
@@ -1,108 +0,0 @@
1
- param (
2
- [Parameter(Mandatory=$true)]
3
- [string[]] $Components,
4
-
5
- [uri] $InstallerUri = "https://download.visualstudio.microsoft.com/download/pr/c4fef23e-cc45-4836-9544-70e213134bc8/1ee5717e9a1e05015756dff77eb27d554a79a6db91f2716d836df368381af9a1/vs_Enterprise.exe",
6
-
7
- [string] $VsInstaller = "${env:System_DefaultWorkingDirectory}\vs_Enterprise.exe",
8
-
9
- [string] $VsInstallOutputDir = "${env:System_DefaultWorkingDirectory}\vs",
10
-
11
- [System.IO.FileInfo] $VsInstallPath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\2019\Enterprise",
12
-
13
- [System.IO.FileInfo] $VsInstallerPath = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer",
14
-
15
- [switch] $Collect = $false,
16
-
17
- [switch] $Cleanup = $false,
18
-
19
- [switch] $UseWebInstaller = $false
20
- )
21
-
22
- $Components | ForEach-Object {
23
- $componentList += '--add', $_
24
- }
25
-
26
- $LocalVsInstaller = "$VsInstallerPath\vs_installershell.exe"
27
-
28
- $UseWebInstaller = $UseWebInstaller -or -not (Test-Path -Path "$LocalVsInstaller")
29
-
30
- if ($UseWebInstaller) {
31
- Write-Host "Downloading web installer..."
32
-
33
- Invoke-WebRequest -Method Get `
34
- -Uri $InstallerUri `
35
- -OutFile $VsInstaller
36
-
37
- New-Item -ItemType directory -Path $VsInstallOutputDir
38
-
39
- Write-Host "Running web installer to download requested components..."
40
-
41
- Start-Process `
42
- -FilePath "$VsInstaller" `
43
- -ArgumentList ( `
44
- '--layout', "$VsInstallOutputDir",
45
- '--wait',
46
- '--norestart',
47
- '--quiet' + `
48
- $componentList
49
- ) `
50
- -Wait `
51
- -PassThru
52
-
53
- Write-Host "Running downloaded VS installer to add requested components..."
54
-
55
- Start-Process `
56
- -FilePath "$VsInstallOutputDir\vs_Enterprise.exe" `
57
- -ArgumentList (
58
- 'modify',
59
- '--installPath', "`"$VsInstallPath`"" ,
60
- '--wait',
61
- '--norestart',
62
- '--quiet' + `
63
- $componentList
64
- ) `
65
- -Wait `
66
- -PassThru `
67
- -OutVariable returnCode
68
-
69
- if ($Cleanup) {
70
- Write-Host "Cleaning up..."
71
-
72
- Remove-Item -Path $VsInstaller
73
- Remove-Item -Path $VsInstallOutputDir -Recurse
74
- }
75
-
76
- } else {
77
- Write-Host "Running local installer to add requested components..."
78
-
79
- Start-Process `
80
- -FilePath "$LocalVsInstaller" `
81
- -ArgumentList (
82
- 'modify',
83
- '--installPath', "`"$VsInstallPath`"" ,
84
- '--norestart',
85
- '--quiet' + `
86
- $componentList
87
- ) `
88
- -Wait `
89
- -OutVariable returnCode
90
- }
91
-
92
- if ($Collect) {
93
- Invoke-WebRequest -Method Get `
94
- -Uri 'https://download.microsoft.com/download/8/3/4/834E83F6-C377-4DCE-A757-69A418B6C6DF/Collect.exe' `
95
- -OutFile ${env:System_DefaultWorkingDirectory}\Collect.exe
96
-
97
- # Should generate ${env:Temp}\vslogs.zip
98
- Start-Process `
99
- -FilePath "${env:System_DefaultWorkingDirectory}\Collect.exe" `
100
- -Wait `
101
- -PassThru
102
-
103
- New-Item -ItemType Directory -Force ${env:System_DefaultWorkingDirectory}\vslogs
104
- Expand-Archive -Path ${env:TEMP}\vslogs.zip -DestinationPath ${env:System_DefaultWorkingDirectory}\vslogs\
105
-
106
- Write-Host "VC versions after installation:"
107
- Get-ChildItem -Name "$VsInstallPath\VC\Tools\MSVC\"
108
- }
@@ -1,17 +0,0 @@
1
- name: "Close stale issues and PRs"
2
- on:
3
- schedule:
4
- - cron: "0 0 * * *"
5
-
6
- jobs:
7
- stale:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - uses: actions/stale@v3.0.14
11
- with:
12
- repo-token: ${{ secrets.GITHUB_TOKEN }}
13
- stale-issue-message: 'Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like _still searching for solutions_ and if you found one, please open a pull request! You have 7 days until this gets closed automatically'
14
- stale-pr-message: 'Hello 👋, this PR has been opened for more than 2 months with no activity on it. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 7 days until this gets closed automatically'
15
- exempt-issue-label: 'Keep opened'
16
- exempt-pr-label: 'Keep opened'
17
- remove-stale-when-updated: true
package/.gitignore DELETED
@@ -1,62 +0,0 @@
1
- # OSX
2
- #
3
- .DS_Store
4
-
5
- # Xcode
6
- #
7
- .xcode.env
8
- build/
9
- *.pbxuser
10
- !default.pbxuser
11
- *.mode1v3
12
- !default.mode1v3
13
- *.mode2v3
14
- !default.mode2v3
15
- *.perspectivev3
16
- !default.perspectivev3
17
- xcuserdata
18
- *.xccheckout
19
- *.moved-aside
20
- DerivedData
21
- *.hmap
22
- *.ipa
23
- *.xcuserstate
24
- project.xcworkspace
25
- Pods/
26
-
27
- # Android/IJ
28
- #
29
- .idea
30
- *.iml
31
- .gradle
32
- local.properties
33
- lib/android/src/main/gen
34
-
35
- # node.js
36
- #
37
- node_modules/
38
- npm-debug.log
39
- yarn-error.log
40
- package-lock.json
41
-
42
- # Rubygem bundles
43
- #
44
- bundles/
45
-
46
- # VS Code
47
- .vscode/*
48
- !.vscode/settings.json
49
- !.vscode/tasks.json
50
- !.vscode/launch.json
51
- !.vscode/extensions.json
52
-
53
- android/gradle
54
- android/gradlew
55
- android/gradlew.bat
56
-
57
- lib/
58
- .classpath
59
- .project
60
- .settings/
61
- msbuild.binlog
62
- example/msbuild.binlog
package/.prettierrc.js DELETED
@@ -1,10 +0,0 @@
1
- // https://prettier.io/docs/en/options.html
2
-
3
- module.exports = {
4
- // Enables semicolons at the end of statements
5
- semi: true,
6
- // Formats strings with single quotes ('') instead of quotes ("")
7
- singleQuote: true,
8
- // Adds a trailing comma at the end of all lists (including function arguments)
9
- trailingComma: 'all',
10
- };
package/.releaserc DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "plugins": [
3
- "@semantic-release/commit-analyzer",
4
- "@semantic-release/release-notes-generator",
5
- "@semantic-release/npm",
6
- "@semantic-release/github",
7
- [
8
- "@semantic-release/git",
9
- {
10
- "assets": "package.json",
11
- "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
12
- }
13
- ]
14
- ]
15
- }
@@ -1,9 +0,0 @@
1
- {
2
- "typescript.tsdk": "node_modules/typescript/lib",
3
- "eslint.validate": [
4
- "javascript",
5
- "javascriptreact",
6
- "typescript",
7
- "typescriptreact"
8
- ]
9
- }