@exodus/react-native-webview 11.26.1-exodus.32 → 11.26.1-exodus.33

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 (249) hide show
  1. package/android/build/.transforms/bd1c9282aaabf4a0d1b6bb39aff484a4/results.bin +1 -0
  2. package/android/build/.transforms/bd1c9282aaabf4a0d1b6bb39aff484a4/transformed/classes/classes.dex +0 -0
  3. package/android/build/generated/source/buildConfig/debug/com/reactnativecommunity/webview/BuildConfig.java +10 -0
  4. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +27 -0
  5. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +18 -0
  6. package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +4 -0
  7. package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
  8. package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
  9. package/android/build/intermediates/compile_symbol_list/debug/R.txt +1861 -0
  10. package/android/build/intermediates/compiled_local_resources/debug/out/xml_file_provider_paths.xml.flat +0 -0
  11. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +2 -0
  12. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
  13. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
  14. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
  15. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +2 -0
  16. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/BasicAuthCredential.class +0 -0
  17. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/BuildConfig.class +0 -0
  18. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewFileProvider.class +0 -0
  19. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewManager$1.class +0 -0
  20. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewManager$2.class +0 -0
  21. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewManager$RNCWebChromeClient$1.class +0 -0
  22. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewManager$RNCWebChromeClient$2.class +0 -0
  23. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewManager$RNCWebChromeClient.class +0 -0
  24. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewManager$RNCWebView$1.class +0 -0
  25. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewManager$RNCWebView$ProgressChangedFilter.class +0 -0
  26. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewManager$RNCWebView$RNCWebViewBridge.class +0 -0
  27. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewManager$RNCWebView.class +0 -0
  28. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewManager$RNCWebViewClient.class +0 -0
  29. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewManager.class +0 -0
  30. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewModule$1.class +0 -0
  31. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewModule$MimeType.class +0 -0
  32. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewModule$ShouldOverrideUrlLoadingLock$ShouldOverrideCallbackState.class +0 -0
  33. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewModule$ShouldOverrideUrlLoadingLock.class +0 -0
  34. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewModule.class +0 -0
  35. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewPackage.class +0 -0
  36. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewUtils$1.class +0 -0
  37. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/RNCWebViewUtils.class +0 -0
  38. package/android/build/intermediates/javac/debug/classes/com/reactnativecommunity/webview/WebViewConfig.class +0 -0
  39. package/android/build/intermediates/library_java_res/debug/res.jar +0 -0
  40. package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +3 -0
  41. package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +46 -0
  42. package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +27 -0
  43. package/android/build/intermediates/navigation_json/debug/navigation.json +1 -0
  44. package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +18 -0
  45. package/android/build/intermediates/packaged_res/debug/xml/file_provider_paths.xml +6 -0
  46. package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
  47. package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +1381 -0
  48. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  49. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  50. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  51. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  52. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  53. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  54. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  55. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  56. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  57. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  58. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  59. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  60. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  61. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  62. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  63. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  64. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  65. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  66. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  67. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  68. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  69. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  70. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  71. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  72. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  73. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  74. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  75. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  76. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  77. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  78. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  79. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  80. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  81. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  82. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  83. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  84. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  85. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  86. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  87. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  88. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  89. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  90. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  91. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  92. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  93. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  94. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  95. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  96. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  97. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  98. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  99. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  100. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  101. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  102. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  103. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  104. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  105. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  106. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  107. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  108. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  109. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  110. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  111. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +2 -0
  112. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  113. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  114. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  115. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  116. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  117. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  118. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  119. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  120. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  121. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  122. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  123. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  124. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  125. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  126. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  127. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  128. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  129. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  130. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  131. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  132. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  133. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  134. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  135. package/android/build/outputs/logs/manifest-merger-debug-report.txt +59 -0
  136. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  137. package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-webview_debug.kotlin_module +0 -0
  138. package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/webview/events/TopLoadingErrorEvent$Companion.class +0 -0
  139. package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/webview/events/TopLoadingErrorEvent.class +0 -0
  140. package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/webview/events/TopLoadingFinishEvent$Companion.class +0 -0
  141. package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/webview/events/TopLoadingFinishEvent.class +0 -0
  142. package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/webview/events/TopLoadingProgressEvent$Companion.class +0 -0
  143. package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/webview/events/TopLoadingProgressEvent.class +0 -0
  144. package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/webview/events/TopLoadingStartEvent$Companion.class +0 -0
  145. package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/webview/events/TopLoadingStartEvent.class +0 -0
  146. package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/webview/events/TopMessageEvent$Companion.class +0 -0
  147. package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/webview/events/TopMessageEvent.class +0 -0
  148. package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/webview/events/TopOpenWindowEvent$Companion.class +0 -0
  149. package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/webview/events/TopOpenWindowEvent.class +0 -0
  150. package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/webview/events/TopShouldStartLoadWithRequestEvent$Companion.class +0 -0
  151. package/android/build/tmp/kotlin-classes/debug/com/reactnativecommunity/webview/events/TopShouldStartLoadWithRequestEvent.class +0 -0
  152. package/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java +26 -7
  153. package/apple/RNCWebView.m +7 -0
  154. package/apple/RNCWebViewManager.m +1 -0
  155. package/lib/WebView.android.js +3 -3
  156. package/lib/WebView.ios.js +3 -3
  157. package/lib/WebViewShared.d.ts +1 -0
  158. package/lib/WebViewShared.js +4 -1
  159. package/lib/WebViewTypes.d.ts +5 -0
  160. package/package.json +1 -1
  161. package/.all-contributorsrc +0 -185
  162. package/.circleci/config.yml +0 -66
  163. package/.eslintignore +0 -2
  164. package/.eslintrc.js +0 -94
  165. package/.flowconfig +0 -88
  166. package/.flowconfig.android +0 -88
  167. package/.gitattributes +0 -12
  168. package/.github/CODEOWNERS +0 -1
  169. package/.github/ISSUE_TEMPLATE/bug-report.md +0 -42
  170. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -30
  171. package/.github/workflows/android-ci.yml +0 -35
  172. package/.github/workflows/detox.yml +0 -20
  173. package/.github/workflows/ios-ci.yml +0 -31
  174. package/.github/workflows/scripts/install-vs-features.ps1 +0 -108
  175. package/.github/workflows/stale.yml +0 -17
  176. package/.gitignore +0 -62
  177. package/.idea/.gitignore +0 -5
  178. package/.idea/inspectionProfiles/Project_Default.xml +0 -6
  179. package/.idea/misc.xml +0 -9
  180. package/.idea/modules.xml +0 -8
  181. package/.idea/react-native-webview.iml +0 -9
  182. package/.idea/vcs.xml +0 -6
  183. package/.idea/workspace.xml +0 -104
  184. package/.prettierrc.js +0 -10
  185. package/.releaserc +0 -15
  186. package/.vscode/settings.json +0 -9
  187. package/babel.config.js +0 -11
  188. package/bin/setup +0 -26
  189. package/docs/Contributing.md +0 -102
  190. package/docs/Custom-Android.md +0 -222
  191. package/docs/Custom-iOS.md +0 -236
  192. package/docs/Debugging.md +0 -101
  193. package/docs/Getting-Started.md +0 -142
  194. package/docs/Guide.md +0 -613
  195. package/docs/Reference.md +0 -1639
  196. package/example/.gitignore +0 -14
  197. package/example/App.tsx +0 -262
  198. package/example/android/build.gradle +0 -15
  199. package/example/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  200. package/example/android/gradle/wrapper/gradle-wrapper.properties +0 -5
  201. package/example/android/gradle.properties +0 -34
  202. package/example/android/gradlew +0 -234
  203. package/example/android/gradlew.bat +0 -89
  204. package/example/android/settings.gradle +0 -12
  205. package/example/app.json +0 -20
  206. package/example/assets/test.html +0 -9
  207. package/example/babel.config.js +0 -3
  208. package/example/examples/Alerts.tsx +0 -72
  209. package/example/examples/ApplePay.tsx +0 -23
  210. package/example/examples/Background.tsx +0 -54
  211. package/example/examples/Downloads.tsx +0 -57
  212. package/example/examples/Injection.tsx +0 -161
  213. package/example/examples/LocalPageLoad.tsx +0 -16
  214. package/example/examples/Messaging.tsx +0 -63
  215. package/example/examples/NativeWebpage.tsx +0 -22
  216. package/example/examples/Scrolling.tsx +0 -68
  217. package/example/examples/Uploads.tsx +0 -69
  218. package/example/index.js +0 -9
  219. package/example/ios/Podfile +0 -8
  220. package/example/ios/Podfile.lock +0 -445
  221. package/jest-setups/jest.setup.js +0 -8
  222. package/jest.config.js +0 -184
  223. package/lib/WebView.android.d.ts.map +0 -1
  224. package/lib/WebView.d.ts.map +0 -1
  225. package/lib/WebView.ios.d.ts.map +0 -1
  226. package/lib/WebView.styles.d.ts.map +0 -1
  227. package/lib/WebViewNativeComponent.android.d.ts.map +0 -1
  228. package/lib/WebViewNativeComponent.ios.d.ts.map +0 -1
  229. package/lib/WebViewShared.d.ts.map +0 -1
  230. package/lib/WebViewTypes.d.ts.map +0 -1
  231. package/lib/index.d.ts.map +0 -1
  232. package/lib/validation.d.ts.map +0 -1
  233. package/metro.config.js +0 -57
  234. package/src/WebView.android.tsx +0 -255
  235. package/src/WebView.ios.tsx +0 -230
  236. package/src/WebView.styles.ts +0 -44
  237. package/src/WebView.tsx +0 -18
  238. package/src/WebViewNativeComponent.android.ts +0 -8
  239. package/src/WebViewNativeComponent.ios.ts +0 -8
  240. package/src/WebViewShared.tsx +0 -318
  241. package/src/WebViewTypes.ts +0 -941
  242. package/src/__tests__/WebViewShared-test.js +0 -292
  243. package/src/__tests__/__snapshots__/WebViewShared-test.js.snap +0 -13
  244. package/src/__tests__/validation-test.js +0 -39
  245. package/src/index.ts +0 -4
  246. package/src/validation.ts +0 -13
  247. package/tsconfig.json +0 -24
  248. package/yarn.lock +0 -13397
  249. /package/{example/.watchmanconfig → android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"WebViewTypes.d.ts","sourceRoot":"","sources":["../src/WebViewTypes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EACL,oBAAoB,EACpB,SAAS,EACT,SAAS,EACT,SAAS,EACT,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,iBAAi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3C"}
@@ -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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAE1E,QAAA,MAAM,aAAa,kEAOlB,CAAA;AAED,eAAe,aAAa,CAAA"}
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
- };
@@ -1,255 +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
- defaultDeeplinkWhitelist,
19
- defaultRenderError,
20
- defaultRenderLoading,
21
- useWebWiewLogic,
22
- versionPasses,
23
- } from './WebViewShared';
24
- import {
25
- AndroidWebViewProps,
26
- NativeWebViewAndroid,
27
- } from './WebViewTypes';
28
-
29
- import styles from './WebView.styles';
30
- import validateProps from './validation'
31
-
32
- const { getWebViewDefaultUserAgent } = NativeModules.RNCWebViewUtils;
33
-
34
- let userAgentPromise: Promise<string> | undefined
35
-
36
- async function getUserAgent(): Promise<string> {
37
- if (!userAgentPromise) userAgentPromise = getWebViewDefaultUserAgent()
38
- const userAgent = await userAgentPromise
39
- return userAgent || 'unknown'
40
- }
41
-
42
- const codegenNativeCommands = codegenNativeCommandsUntyped as <T extends {}>(options: { supportedCommands: (keyof T)[] }) => T;
43
-
44
- const Commands = codegenNativeCommands({
45
- supportedCommands: ['goBack', 'goForward', 'reload', 'stopLoading', /* 'injectJavaScript', */ 'requestFocus', 'postMessage', 'clearFormData', 'clearCache', 'clearHistory', 'loadUrl'],
46
- });
47
-
48
- /**
49
- * A simple counter to uniquely identify WebView instances. Do not use this for anything else.
50
- */
51
- let uniqueRef = 0;
52
-
53
- /**
54
- * Harcoded default for security.
55
- */
56
- const mediaPlaybackRequiresUserAction = true;
57
- // Android only
58
- const setSupportMultipleWindows = true;
59
- const mixedContentMode = 'never'
60
- const hardMinimumChromeVersion = '100.0' // TODO: determinime a good lower bound
61
-
62
- const WebViewComponent = forwardRef<{}, AndroidWebViewProps>((props, ref) => {
63
- const {
64
- overScrollMode = 'always',
65
- javaScriptEnabled = true,
66
- thirdPartyCookiesEnabled = true,
67
- scalesPageToFit = true,
68
- saveFormDataDisabled = false,
69
- cacheEnabled = true,
70
- androidHardwareAccelerationDisabled = false,
71
- androidLayerType = "none",
72
- originWhitelist = defaultOriginWhitelist,
73
- deeplinkWhitelist = defaultDeeplinkWhitelist,
74
- setBuiltInZoomControls = true,
75
- setDisplayZoomControls = false,
76
- nestedScrollEnabled = false,
77
- startInLoadingState,
78
- onLoadStart,
79
- onError,
80
- onLoad,
81
- onLoadEnd,
82
- onMessage: onMessageProp,
83
- onOpenWindow: onOpenWindowProp,
84
- renderLoading,
85
- renderError,
86
- style,
87
- containerStyle,
88
- source,
89
- onShouldStartLoadWithRequest: onShouldStartLoadWithRequestProp,
90
- validateMeta,
91
- validateData,
92
- minimumChromeVersion,
93
- unsupportedVersionComponent: UnsupportedVersionComponent,
94
- ...otherProps
95
- } = validateProps(props)
96
-
97
- const messagingModuleName = useRef<string>(`WebViewMessageHandler${uniqueRef += 1}`).current;
98
- const webViewRef = useRef<NativeWebViewAndroid | null>(null);
99
-
100
- const onShouldStartLoadWithRequestCallback = useCallback((shouldStart: boolean,
101
- url: string,
102
- lockIdentifier?: number) => {
103
- if (lockIdentifier) {
104
- NativeModules.RNCWebView.onShouldStartLoadWithRequestCallback(shouldStart, lockIdentifier);
105
- } else if (shouldStart) {
106
- Commands.loadUrl(webViewRef.current, url);
107
- }
108
- }, []);
109
-
110
- const { onLoadingStart, onShouldStartLoadWithRequest, onMessage, viewState, setViewState, lastErrorEvent, onLoadingError, onLoadingFinish, onLoadingProgress, onOpenWindow, passesWhitelist } = useWebWiewLogic({
111
- onLoad,
112
- onError,
113
- onLoadEnd,
114
- onLoadStart,
115
- onMessageProp,
116
- onOpenWindowProp,
117
- startInLoadingState,
118
- originWhitelist,
119
- deeplinkWhitelist,
120
- onShouldStartLoadWithRequestProp,
121
- onShouldStartLoadWithRequestCallback,
122
- validateMeta,
123
- validateData,
124
- })
125
-
126
- useImperativeHandle(ref, () => ({
127
- goForward: () => webViewRef.current && Commands.goForward(webViewRef.current),
128
- goBack: () => webViewRef.current && Commands.goBack(webViewRef.current),
129
- reload: () => {
130
- setViewState(
131
- 'LOADING',
132
- );
133
- if (webViewRef.current) {
134
- Commands.reload(webViewRef.current)
135
- }
136
- },
137
- stopLoading: () => webViewRef.current && Commands.stopLoading(webViewRef.current),
138
- postMessage: (data: string) => webViewRef.current && Commands.postMessage(webViewRef.current, data),
139
- // injectJavaScript: (data: string) => Commands.injectJavaScript(webViewRef.current, data),
140
- requestFocus: () => webViewRef.current && Commands.requestFocus(webViewRef.current),
141
- clearFormData: () => webViewRef.current && Commands.clearFormData(webViewRef.current),
142
- clearCache: (includeDiskFiles: boolean) => webViewRef.current && Commands.clearCache(webViewRef.current, includeDiskFiles),
143
- clearHistory: () => webViewRef.current && Commands.clearHistory(webViewRef.current),
144
- }), [setViewState, webViewRef]);
145
-
146
- const directEventCallbacks = useMemo(() => ({
147
- onShouldStartLoadWithRequest,
148
- onMessage,
149
- }), [onMessage, onShouldStartLoadWithRequest]);
150
-
151
- useEffect(() => {
152
- BatchedBridge.registerCallableModule(messagingModuleName, directEventCallbacks);
153
- }, [messagingModuleName, directEventCallbacks])
154
-
155
- const [userAgent, setUserAgent] = useState<string>()
156
-
157
- useEffect(() => {
158
- getUserAgent().then(setUserAgent)
159
- }, [])
160
-
161
- if (!userAgent) return null // stop the rendering until userAgent is known
162
- const version = userAgent.match(/chrome\/((?:[0-9]+\.)+[0-9]+)/i)?.[1]
163
- if (!(versionPasses(version, minimumChromeVersion) && versionPasses(version, hardMinimumChromeVersion))) {
164
- if (UnsupportedVersionComponent) {
165
- return <UnsupportedVersionComponent />
166
- }
167
- return (
168
- <View style={{ alignSelf: 'flex-start' }}>
169
- <Text style={{ color: 'red' }}>
170
- Chrome version is outdated and insecure. Update it to continue.
171
- </Text>
172
- </View>
173
- );
174
- }
175
-
176
- let otherView = null;
177
- if (viewState === 'LOADING') {
178
- otherView = (renderLoading || defaultRenderLoading)();
179
- } else if (viewState === 'ERROR') {
180
- invariant(lastErrorEvent != null, 'lastErrorEvent expected to be non-null');
181
- otherView = (renderError || defaultRenderError)(
182
- lastErrorEvent.domain,
183
- lastErrorEvent.code,
184
- lastErrorEvent.description,
185
- );
186
- } else if (viewState !== 'IDLE') {
187
- console.error(`RNCWebView invalid state encountered: ${viewState}`);
188
- }
189
-
190
- const webViewStyles = [styles.container, styles.webView, style];
191
- const webViewContainerStyle = [styles.container, containerStyle];
192
-
193
- if (typeof source !== "number" && source && 'method' in source) {
194
- if (source.method === 'POST' && source.headers) {
195
- console.warn(
196
- 'WebView: `source.headers` is not supported when using POST.',
197
- );
198
- } else if (source.method === 'GET' && source.body) {
199
- console.warn('WebView: `source.body` is not supported when using GET.');
200
- }
201
- }
202
-
203
- const safeSource = (typeof source === "object" && 'uri' in source && !passesWhitelist(source.uri)) ? { uri: 'about:blank' } : source;
204
-
205
- const NativeWebView = RNCWebView;
206
-
207
- const webView = <NativeWebView
208
- key="webViewKey"
209
- {...otherProps}
210
- messagingEnabled={typeof onMessageProp === 'function'}
211
- messagingModuleName={messagingModuleName}
212
-
213
- onLoadingError={onLoadingError}
214
- onLoadingFinish={onLoadingFinish}
215
- onLoadingProgress={onLoadingProgress}
216
- onLoadingStart={onLoadingStart}
217
- onMessage={onMessage}
218
- onOpenWindow={onOpenWindow}
219
- onShouldStartLoadWithRequest={onShouldStartLoadWithRequest}
220
-
221
- ref={webViewRef}
222
- // TODO: find a better way to type this.
223
- source={safeSource}
224
- style={webViewStyles}
225
- overScrollMode={overScrollMode}
226
- javaScriptEnabled={javaScriptEnabled}
227
- thirdPartyCookiesEnabled={thirdPartyCookiesEnabled}
228
- scalesPageToFit={scalesPageToFit}
229
- saveFormDataDisabled={saveFormDataDisabled}
230
- cacheEnabled={cacheEnabled}
231
- androidHardwareAccelerationDisabled={androidHardwareAccelerationDisabled}
232
- androidLayerType={androidLayerType}
233
- setSupportMultipleWindows={setSupportMultipleWindows}
234
- setBuiltInZoomControls={setBuiltInZoomControls}
235
- setDisplayZoomControls={setDisplayZoomControls}
236
- mixedContentMode={mixedContentMode}
237
- nestedScrollEnabled={nestedScrollEnabled}
238
- mediaPlaybackRequiresUserAction={mediaPlaybackRequiresUserAction}
239
- />
240
-
241
- return (
242
- <View style={webViewContainerStyle}>
243
- {webView}
244
- {otherView}
245
- </View>
246
- );
247
- });
248
-
249
- // native implementation should return "true" only for Android 5+
250
- const isFileUploadSupported: () => Promise<boolean>
251
- = NativeModules.RNCWebView.isFileUploadSupported();
252
-
253
- const WebView = Object.assign(WebViewComponent, {isFileUploadSupported});
254
-
255
- export default WebView;
@@ -1,230 +0,0 @@
1
- import React, { forwardRef, useCallback, useImperativeHandle, useRef } from 'react';
2
- import {
3
- Text,
4
- View,
5
- NativeModules,
6
- Platform,
7
- } from 'react-native';
8
- import invariant from 'invariant';
9
-
10
- // @ts-expect-error react-native doesn't have this type
11
- import codegenNativeCommandsUntyped from 'react-native/Libraries/Utilities/codegenNativeCommands';
12
- import RNCWebView from "./WebViewNativeComponent.ios";
13
- import {
14
- defaultOriginWhitelist,
15
- defaultDeeplinkWhitelist,
16
- defaultRenderError,
17
- defaultRenderLoading,
18
- useWebWiewLogic,
19
- versionPasses,
20
- } from './WebViewShared';
21
- import {
22
- IOSWebViewProps,
23
- DecelerationRateConstant,
24
- NativeWebViewIOS,
25
- ViewManager,
26
- } from './WebViewTypes';
27
-
28
- import styles from './WebView.styles';
29
- import validateProps from './validation'
30
-
31
- const codegenNativeCommands = codegenNativeCommandsUntyped as <T extends {}>(options: { supportedCommands: (keyof T)[] }) => T;
32
-
33
- const Commands = codegenNativeCommands({
34
- supportedCommands: ['goBack', 'goForward', 'reload', 'stopLoading', /* 'injectJavaScript', */ 'requestFocus', 'postMessage', 'loadUrl'],
35
- });
36
-
37
- const processDecelerationRate = (
38
- decelerationRate: DecelerationRateConstant | number | undefined,
39
- ) => {
40
- let newDecelerationRate = decelerationRate;
41
- if (newDecelerationRate === 'normal') {
42
- newDecelerationRate = 0.998;
43
- } else if (newDecelerationRate === 'fast') {
44
- newDecelerationRate = 0.99;
45
- }
46
- return newDecelerationRate;
47
- };
48
-
49
- const RNCWebViewManager = NativeModules.RNCWebViewManager as ViewManager;
50
-
51
- const useWarnIfChanges = <T extends unknown>(value: T, name: string) => {
52
- const ref = useRef(value);
53
- if (ref.current !== value) {
54
- console.warn(`Changes to property ${name} do nothing after the initial render.`);
55
- ref.current = value;
56
- }
57
- }
58
-
59
- /**
60
- * Harcoded defaults for security.
61
- */
62
- const mediaPlaybackRequiresUserAction = true;
63
- // iOS only configs
64
- const allowsInlineMediaPlayback = true;
65
- const useSharedProcessPool = false;
66
- const sharedCookiesEnabled = false;
67
- const enableApplePay = false;
68
- const dataDetectorTypes = 'none';
69
- const hardMinimumIOSVersion = '12.5.6 <13, 13.6.1 <14, 14.8.1 <15, 15.7.1'
70
-
71
- const WebViewComponent = forwardRef<{}, IOSWebViewProps>((props, ref) => {
72
- const {
73
- javaScriptEnabled = true,
74
- cacheEnabled = true,
75
- originWhitelist = defaultOriginWhitelist,
76
- deeplinkWhitelist = defaultDeeplinkWhitelist,
77
- textInteractionEnabled= true,
78
- injectedJavaScript,
79
- injectedJavaScriptBeforeContentLoaded,
80
- startInLoadingState,
81
- onLoadStart,
82
- onError,
83
- onLoad,
84
- onLoadEnd,
85
- onMessage: onMessageProp,
86
- renderLoading,
87
- renderError,
88
- style,
89
- containerStyle,
90
- source,
91
- incognito,
92
- validateMeta,
93
- validateData,
94
- decelerationRate: decelerationRateProp,
95
- onShouldStartLoadWithRequest: onShouldStartLoadWithRequestProp,
96
- minimumIOSVersion,
97
- unsupportedVersionComponent: UnsupportedVersionComponent,
98
- ...otherProps
99
- } = validateProps(props)
100
-
101
- const webViewRef = useRef<NativeWebViewIOS | null>(null);
102
-
103
- const onShouldStartLoadWithRequestCallback = useCallback((
104
- shouldStart: boolean,
105
- _url: string,
106
- lockIdentifier = 0,
107
- ) => {
108
- const viewManager = RNCWebViewManager;
109
-
110
- viewManager.startLoadWithResult(!!shouldStart, lockIdentifier);
111
- }, []);
112
-
113
- const { onLoadingStart, onShouldStartLoadWithRequest, onMessage, viewState, setViewState, lastErrorEvent, onLoadingError, onLoadingFinish, onLoadingProgress } = useWebWiewLogic({
114
- onLoad,
115
- onError,
116
- onLoadEnd,
117
- onLoadStart,
118
- onMessageProp,
119
- startInLoadingState,
120
- originWhitelist,
121
- deeplinkWhitelist,
122
- onShouldStartLoadWithRequestProp,
123
- onShouldStartLoadWithRequestCallback,
124
- validateMeta,
125
- validateData,
126
- });
127
-
128
- useImperativeHandle(ref, () => ({
129
- goForward: () => webViewRef.current && Commands.goForward(webViewRef.current),
130
- goBack: () => webViewRef.current && Commands.goBack(webViewRef.current),
131
- reload: () => {
132
- setViewState(
133
- 'LOADING',
134
- );
135
- if (webViewRef.current) {
136
- Commands.reload(webViewRef.current)
137
- }
138
- },
139
- stopLoading: () => webViewRef.current && Commands.stopLoading(webViewRef.current),
140
- postMessage: (data: string) => webViewRef.current && Commands.postMessage(webViewRef.current, data),
141
- // injectJavaScript: (data: string) => Commands.injectJavaScript(webViewRef.current, data),
142
- requestFocus: () => webViewRef.current && Commands.requestFocus(webViewRef.current),
143
- }), [setViewState, webViewRef]);
144
-
145
-
146
- useWarnIfChanges(allowsInlineMediaPlayback, 'allowsInlineMediaPlayback');
147
- useWarnIfChanges(incognito, 'incognito');
148
- useWarnIfChanges(mediaPlaybackRequiresUserAction, 'mediaPlaybackRequiresUserAction');
149
- useWarnIfChanges(dataDetectorTypes, 'dataDetectorTypes');
150
-
151
- const version = String(Platform.Version)
152
- if (!(versionPasses(version, minimumIOSVersion) && versionPasses(version, hardMinimumIOSVersion))) {
153
- if (UnsupportedVersionComponent) {
154
- return <UnsupportedVersionComponent />
155
- }
156
- return (
157
- <View style={{ alignSelf: 'flex-start' }}>
158
- <Text style={{ color: 'red' }}>
159
- iOS 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
- const decelerationRate = processDecelerationRate(decelerationRateProp);
183
-
184
- const NativeWebView = RNCWebView;
185
-
186
- const webView = (
187
- <NativeWebView
188
- key="webViewKey"
189
- {...otherProps}
190
- enableApplePay={enableApplePay}
191
- javaScriptEnabled={javaScriptEnabled}
192
- cacheEnabled={cacheEnabled}
193
- dataDetectorTypes={dataDetectorTypes}
194
- useSharedProcessPool={useSharedProcessPool}
195
- textInteractionEnabled={textInteractionEnabled}
196
- decelerationRate={decelerationRate}
197
- messagingEnabled={typeof onMessageProp === 'function'}
198
- onLoadingError={onLoadingError}
199
- onLoadingFinish={onLoadingFinish}
200
- onLoadingProgress={onLoadingProgress}
201
- onLoadingStart={onLoadingStart}
202
- onMessage={onMessage}
203
- onShouldStartLoadWithRequest={onShouldStartLoadWithRequest}
204
- injectedJavaScript={injectedJavaScript}
205
- injectedJavaScriptBeforeContentLoaded={injectedJavaScriptBeforeContentLoaded}
206
- allowsInlineMediaPlayback={allowsInlineMediaPlayback}
207
- incognito={incognito}
208
- mediaPlaybackRequiresUserAction={mediaPlaybackRequiresUserAction}
209
- ref={webViewRef}
210
- sharedCookiesEnabled={sharedCookiesEnabled}
211
- // TODO: find a better way to type this.
212
- source={source}
213
- style={webViewStyles}
214
- />
215
- );
216
-
217
- return (
218
- <View style={webViewContainerStyle}>
219
- {webView}
220
- {otherView}
221
- </View>
222
- );})
223
-
224
- // no native implementation for iOS, depends only on permissions
225
- const isFileUploadSupported: () => Promise<boolean>
226
- = async () => true;
227
-
228
- const WebView = Object.assign(WebViewComponent, {isFileUploadSupported});
229
-
230
- export default WebView;
@@ -1,44 +0,0 @@
1
- import { StyleSheet, ViewStyle, TextStyle } from 'react-native';
2
-
3
- interface Styles {
4
- container: ViewStyle;
5
- errorText: TextStyle;
6
- errorTextTitle: TextStyle;
7
- loadingOrErrorView: ViewStyle;
8
- webView: ViewStyle;
9
- loadingProgressBar: ViewStyle;
10
- }
11
-
12
- const styles = StyleSheet.create<Styles>({
13
- container: {
14
- flex: 1,
15
- overflow: 'hidden',
16
- },
17
- loadingOrErrorView: {
18
- position: 'absolute',
19
- flex: 1,
20
- justifyContent: 'center',
21
- alignItems: 'center',
22
- height: '100%',
23
- width: '100%',
24
- backgroundColor: 'white'
25
- },
26
- loadingProgressBar: {
27
- height: 20,
28
- },
29
- errorText: {
30
- fontSize: 14,
31
- textAlign: 'center',
32
- marginBottom: 2,
33
- },
34
- errorTextTitle: {
35
- fontSize: 15,
36
- fontWeight: '500',
37
- marginBottom: 10,
38
- },
39
- webView: {
40
- backgroundColor: '#ffffff',
41
- },
42
- });
43
-
44
- export default styles;
package/src/WebView.tsx DELETED
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { Text, View } from 'react-native';
3
- import { IOSWebViewProps, AndroidWebViewProps } from './WebViewTypes';
4
-
5
- export type WebViewProps = IOSWebViewProps & AndroidWebViewProps;
6
-
7
- // This "dummy" WebView is to render something for unsupported platforms,
8
- // like for example Expo SDK "web" platform.
9
- const WebView: React.FunctionComponent<WebViewProps> = () => (
10
- <View style={{ alignSelf: 'flex-start' }}>
11
- <Text style={{ color: 'red' }}>
12
- React Native WebView does not support this platform.
13
- </Text>
14
- </View>
15
- );
16
-
17
- export { WebView };
18
- export default WebView;
@@ -1,8 +0,0 @@
1
- import { requireNativeComponent } from "react-native";
2
- import type { NativeWebViewAndroid } from "./WebViewTypes";
3
-
4
- const RNCWebView: typeof NativeWebViewAndroid = requireNativeComponent(
5
- 'RNCWebView',
6
- );
7
-
8
- export default RNCWebView;
@@ -1,8 +0,0 @@
1
- import { requireNativeComponent } from "react-native";
2
- import type { NativeWebViewIOS } from "./WebViewTypes";
3
-
4
- const RNCWebView: typeof NativeWebViewIOS = requireNativeComponent(
5
- 'RNCWebView',
6
- );
7
-
8
- export default RNCWebView;