@exodus/react-native-webview 13.16.0-exodus.2 → 13.16.0-exodus.4

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 (39) hide show
  1. package/android/build.gradle +11 -7
  2. package/android/src/main/java/com/reactnativecommunity/webview/RNCWebChromeClient.java +15 -18
  3. package/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewClient.java +0 -21
  4. package/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManagerImpl.kt +5 -50
  5. package/android/src/newarch/com/reactnativecommunity/webview/RNCWebViewManager.java +0 -58
  6. package/android/src/oldarch/com/reactnativecommunity/webview/RNCWebViewManager.java +0 -40
  7. package/apple/RNCWebView.mm +0 -8
  8. package/apple/RNCWebViewDecisionManager.m +17 -0
  9. package/apple/RNCWebViewImpl.h +0 -10
  10. package/apple/RNCWebViewImpl.m +24 -72
  11. package/apple/RNCWebViewManager.mm +0 -8
  12. package/lib/RNCWebViewNativeComponent.d.ts +0 -26
  13. package/lib/RNCWebViewNativeComponent.js +1 -1
  14. package/lib/WebView.android.js +1 -1
  15. package/lib/WebView.d.ts +2 -2
  16. package/lib/WebView.ios.js +1 -1
  17. package/lib/WebViewShared.d.ts +5 -5
  18. package/lib/WebViewShared.js +1 -1
  19. package/lib/WebViewTypes.d.ts +5 -358
  20. package/lib/WebViewTypes.js +1 -1
  21. package/package.json +4 -11
  22. package/react-native-webview.podspec +1 -1
  23. package/src/RNCWebViewNativeComponent.ts +0 -37
  24. package/src/WebView.android.tsx +293 -284
  25. package/src/WebView.ios.tsx +223 -256
  26. package/src/WebView.tsx +2 -8
  27. package/src/WebViewShared.tsx +2 -11
  28. package/src/WebViewTypes.ts +2 -396
  29. package/src/__tests__/WebViewShared-test.js +40 -62
  30. package/src/__tests__/__snapshots__/WebViewShared-test.js.snap +0 -1
  31. package/android/src/main/java/com/reactnativecommunity/webview/events/TopHttpErrorEvent.kt +0 -25
  32. package/lib/WebView.windows.d.ts +0 -17
  33. package/lib/WebView.windows.js +0 -1
  34. package/lib/WebViewNativeComponent.windows.d.ts +0 -3
  35. package/lib/WebViewNativeComponent.windows.js +0 -1
  36. package/src/WebView.macos.tsx +0 -252
  37. package/src/WebView.windows.tsx +0 -217
  38. package/src/WebViewNativeComponent.macos.ts +0 -7
  39. package/src/WebViewNativeComponent.windows.ts +0 -8
@@ -17,7 +17,6 @@ type WebViewCommands =
17
17
  | 'reload'
18
18
  | 'stopLoading'
19
19
  | 'postMessage'
20
- | 'injectJavaScript'
21
20
  | 'loadUrl'
22
21
  | 'requestFocus'
23
22
  | 'clearCache';
@@ -34,8 +33,6 @@ export type RNCWebViewUIManagerAndroid = RNCWebViewUIManager<
34
33
  WebViewCommands | AndroidWebViewCommands
35
34
  >;
36
35
  export type RNCWebViewUIManagerIOS = RNCWebViewUIManager<WebViewCommands>;
37
- export type RNCWebViewUIManagerMacOS = RNCWebViewUIManager<WebViewCommands>;
38
- export type RNCWebViewUIManagerWindows = RNCWebViewUIManager<WebViewCommands>;
39
36
 
40
37
  type WebViewState = 'IDLE' | 'LOADING' | 'ERROR';
41
38
 
@@ -57,16 +54,6 @@ export type State = NormalState | ErrorState;
57
54
 
58
55
  type Constructor<T> = new (...args: any[]) => T;
59
56
 
60
- declare class NativeWebViewMacOSComponent extends Component<MacOSNativeWebViewProps> {}
61
- declare const NativeWebViewMacOSBase: Constructor<NativeMethodsMixin> &
62
- typeof NativeWebViewMacOSComponent;
63
- export class NativeWebViewMacOS extends NativeWebViewMacOSBase {}
64
-
65
- declare class NativeWebViewWindowsComponent extends Component<WindowsNativeWebViewProps> {}
66
- declare const NativeWebViewWindowsBase: Constructor<NativeMethodsMixin> &
67
- typeof NativeWebViewWindowsComponent;
68
- export class NativeWebViewWindows extends NativeWebViewWindowsBase {}
69
-
70
57
  export interface ContentInsetProp {
71
58
  top?: number;
72
59
  left?: number;
@@ -102,10 +89,6 @@ export interface ShouldStartLoadRequest extends WebViewNavigation {
102
89
  isTopFrame: boolean;
103
90
  }
104
91
 
105
- export interface FileDownload {
106
- downloadUrl: string;
107
- }
108
-
109
92
  export type DecelerationRateConstant = 'normal' | 'fast';
110
93
 
111
94
  export interface WebViewMessage extends WebViewNativeEvent {
@@ -114,18 +97,13 @@ export interface WebViewMessage extends WebViewNativeEvent {
114
97
 
115
98
  export interface WebViewError extends WebViewNativeEvent {
116
99
  /**
117
- * `domain` is only used on iOS and macOS
100
+ * `domain` is only used on iOS
118
101
  */
119
102
  domain?: string;
120
103
  code: number;
121
104
  description: string;
122
105
  }
123
106
 
124
- export interface WebViewHttpError extends WebViewNativeEvent {
125
- description: string;
126
- statusCode: number;
127
- }
128
-
129
107
  export interface WebViewRenderProcessGoneDetail {
130
108
  didCrash: boolean;
131
109
  }
@@ -144,16 +122,12 @@ export type WebViewNavigationEvent = NativeSyntheticEvent<WebViewNavigation>;
144
122
  export type ShouldStartLoadRequestEvent =
145
123
  NativeSyntheticEvent<ShouldStartLoadRequest>;
146
124
 
147
- export type FileDownloadEvent = NativeSyntheticEvent<FileDownload>;
148
-
149
125
  export type WebViewMessageEvent = NativeSyntheticEvent<WebViewMessage>;
150
126
 
151
127
  export type WebViewErrorEvent = NativeSyntheticEvent<WebViewError>;
152
128
 
153
129
  export type WebViewTerminatedEvent = NativeSyntheticEvent<WebViewNativeEvent>;
154
130
 
155
- export type WebViewHttpErrorEvent = NativeSyntheticEvent<WebViewHttpError>;
156
-
157
131
  export type WebViewRenderProcessGoneEvent =
158
132
  NativeSyntheticEvent<WebViewRenderProcessGoneDetail>;
159
133
 
@@ -254,23 +228,6 @@ export interface ViewManager {
254
228
  shouldStartLoadWithLockIdentifier: Function;
255
229
  }
256
230
 
257
- export interface WebViewNativeConfig {
258
- /**
259
- * The native component used to render the WebView.
260
- */
261
- component?: typeof NativeWebViewMacOS | typeof NativeWebViewComponent;
262
- /**
263
- * Set props directly on the native component WebView. Enables custom props which the
264
- * original WebView doesn't pass through.
265
- */
266
- props?: Object;
267
- /**
268
- * Set the ViewManager to use for communication with the native side.
269
- * @platform ios, macos
270
- */
271
- viewManager?: ViewManager;
272
- }
273
-
274
231
  export type OnShouldStartLoadWithRequest = (
275
232
  event: ShouldStartLoadRequest
276
233
  ) => boolean;
@@ -292,9 +249,6 @@ export interface CommonNativeWebViewProps extends ViewProps {
292
249
  incognito?: boolean;
293
250
  injectedJavaScript?: string;
294
251
  injectedJavaScriptBeforeContentLoaded?: string;
295
- injectedJavaScriptForMainFrameOnly?: boolean;
296
- injectedJavaScriptBeforeContentLoadedForMainFrameOnly?: boolean;
297
- javaScriptCanOpenWindowsAutomatically?: boolean;
298
252
  mediaPlaybackRequiresUserAction?: boolean;
299
253
  webviewDebuggingEnabled?: boolean;
300
254
  messagingEnabled: boolean;
@@ -308,7 +262,6 @@ export interface CommonNativeWebViewProps extends ViewProps {
308
262
  onLoadingFinish: (event: WebViewNavigationEvent) => void;
309
263
  onLoadingProgress: (event: WebViewProgressEvent) => void;
310
264
  onLoadingStart: (event: WebViewNavigationEvent) => void;
311
- onHttpError: (event: WebViewHttpErrorEvent) => void;
312
265
  onMessage: (event: WebViewMessageEvent) => void;
313
266
  onShouldStartLoadWithRequest: (event: ShouldStartLoadRequestEvent) => void;
314
267
  showsHorizontalScrollIndicator?: boolean;
@@ -318,10 +271,6 @@ export interface CommonNativeWebViewProps extends ViewProps {
318
271
 
319
272
  source: any;
320
273
  userAgent?: string;
321
- /**
322
- * Append to the existing user-agent. Overridden if `userAgent` is set.
323
- */
324
- applicationNameForUserAgent?: string;
325
274
  basicAuthCredential?: BasicAuthCredential;
326
275
  }
327
276
 
@@ -340,63 +289,6 @@ export declare type MediaCapturePermissionGrantType =
340
289
 
341
290
  export declare type ContentMode = 'recommended' | 'mobile' | 'desktop';
342
291
 
343
- export interface MacOSNativeWebViewProps extends CommonNativeWebViewProps {
344
- allowingReadAccessToURL?: string;
345
- allowFileAccessFromFileURLs?: boolean;
346
- allowUniversalAccessFromFileURLs?: boolean;
347
- allowsBackForwardNavigationGestures?: boolean;
348
- allowsInlineMediaPlayback?: boolean;
349
- allowsPictureInPictureMediaPlayback?: boolean;
350
- allowsAirPlayForMediaPlayback?: boolean;
351
- allowsLinkPreview?: boolean;
352
- automaticallyAdjustContentInsets?: boolean;
353
- bounces?: boolean;
354
- contentInset?: ContentInsetProp;
355
- contentInsetAdjustmentBehavior?: ContentInsetAdjustmentBehavior;
356
- directionalLockEnabled?: boolean;
357
- hideKeyboardAccessoryView?: boolean;
358
- javaScriptEnabled?: boolean;
359
- pagingEnabled?: boolean;
360
- scrollEnabled?: boolean;
361
- useSharedProcessPool?: boolean;
362
- onContentProcessDidTerminate?: (event: WebViewTerminatedEvent) => void;
363
- }
364
-
365
- export interface WindowsNativeWebViewProps extends CommonNativeWebViewProps {
366
- testID?: string;
367
- linkHandlingEnabled?: boolean;
368
- onOpenWindow?: (event: WebViewOpenWindowEvent) => void;
369
- onSourceChanged?: (event: WebViewNavigationEvent) => void;
370
- }
371
-
372
- export interface WindowsWebViewProps extends WebViewSharedProps {
373
- /**
374
- * Boolean value that detenmines whether the web view should use the new chromium based edge webview.
375
- */
376
- useWebView2?: boolean;
377
- /**
378
- * Function that is invoked when the `WebView` should open a new window.
379
- *
380
- * This happens when the JS calls `window.open('http://someurl', '_blank')`
381
- * or when the user clicks on a `<a href="http://someurl" target="_blank">` link.
382
- *
383
- * Only works with `useWebView2` set to `true`.
384
- *
385
- * @platform windows
386
- */
387
- onOpenWindow?: (event: WebViewOpenWindowEvent) => void;
388
-
389
- /**
390
- * Function that is invoked when the `WebView` responds to a request to load a new resource.
391
- * Works only on Windows.
392
- *
393
- * Only works with `useWebView2` set to `true`.
394
- *
395
- * @platform windows
396
- */
397
- onSourceChanged?: (event: WebViewNavigationEvent) => void;
398
- }
399
-
400
292
  export interface IOSWebViewProps extends WebViewSharedProps {
401
293
  /**
402
294
  * Does not store any data within the lifetime of the WebView.
@@ -518,14 +410,9 @@ export interface IOSWebViewProps extends WebViewSharedProps {
518
410
  * Boolean value that indicates whether HTML5 videos can play Picture in Picture.
519
411
  * The default value is `true`.
520
412
  *
521
- * @platform macos
522
- */
523
- allowsPictureInPictureMediaPlayback?: boolean;
524
- /**
525
- * A Boolean value indicating whether AirPlay is allowed. The default value is `false`.
526
413
  * @platform ios
527
414
  */
528
- allowsAirPlayForMediaPlayback?: boolean;
415
+ allowsPictureInPictureMediaPlayback?: boolean;
529
416
  /**
530
417
  * Hide the accessory view when the keyboard is open. Default is false to be
531
418
  * backward compatible.
@@ -601,33 +488,6 @@ export interface IOSWebViewProps extends WebViewSharedProps {
601
488
  */
602
489
  keyboardDisplayRequiresUserAction?: boolean;
603
490
 
604
- /**
605
- * A String value that indicates which URLs the WebView's file can then
606
- * reference in scripts, AJAX requests, and CSS imports. This is only used
607
- * for WebViews that are loaded with a source.uri set to a `'file://'` URL.
608
- *
609
- * If not provided, the default is to only allow read access to the URL
610
- * provided in source.uri itself.
611
- * @platform ios
612
- */
613
- allowingReadAccessToURL?: string;
614
-
615
- /**
616
- * Boolean that sets whether JavaScript running in the context of a file
617
- * scheme URL should be allowed to access content from other file scheme URLs.
618
- * Including accessing content from other file scheme URLs
619
- * @platform ios
620
- */
621
- allowFileAccessFromFileURLs?: boolean;
622
-
623
- /**
624
- * Boolean that sets whether JavaScript running in the context of a file
625
- * scheme URL should be allowed to access content from any origin.
626
- * Including accessing content from other file scheme URLs
627
- * @platform ios
628
- */
629
- allowUniversalAccessFromFileURLs?: boolean;
630
-
631
491
  /**
632
492
  * Function that is invoked when the WebKit WebView content process gets terminated.
633
493
  * @platform ios
@@ -644,20 +504,6 @@ export interface IOSWebViewProps extends WebViewSharedProps {
644
504
  */
645
505
  onOpenWindow?: (event: WebViewOpenWindowEvent) => void;
646
506
 
647
- /**
648
- * If `true` (default), loads the `injectedJavaScript` only into the main frame.
649
- * If `false`, loads it into all frames (e.g. iframes).
650
- * @platform ios
651
- */
652
- injectedJavaScriptForMainFrameOnly?: boolean;
653
-
654
- /**
655
- * If `true` (default), loads the `injectedJavaScriptBeforeContentLoaded` only into the main frame.
656
- * If `false`, loads it into all frames (e.g. iframes).
657
- * @platform ios
658
- */
659
- injectedJavaScriptBeforeContentLoadedForMainFrameOnly?: boolean;
660
-
661
507
  /**
662
508
  * Boolean value that determines whether a pull to refresh gesture is
663
509
  * available in the `WebView`. The default value is `false`.
@@ -688,24 +534,6 @@ export interface IOSWebViewProps extends WebViewSharedProps {
688
534
  */
689
535
  indicatorStyle?: IndicatorStyleType;
690
536
 
691
- /**
692
- * Function that is invoked when the client needs to download a file.
693
- *
694
- * iOS 13+ only: If the webview navigates to a URL that results in an HTTP
695
- * response with a Content-Disposition header 'attachment...', then
696
- * this will be called.
697
- *
698
- * iOS 8+: If the MIME type indicates that the content is not renderable by the
699
- * webview, that will also cause this to be called. On iOS versions before 13,
700
- * this is the only condition that will cause this function to be called.
701
- *
702
- * The application will need to provide its own code to actually download
703
- * the file.
704
- *
705
- * If not provided, the default is to let the webview try to render the file.
706
- */
707
- onFileDownload?: (event: FileDownloadEvent) => void;
708
-
709
537
  /**
710
538
  * A Boolean value which, when set to `true`, indicates to WebKit that a WKWebView
711
539
  * will only navigate to app-bound domains. Once set, any attempt to navigate away
@@ -799,171 +627,6 @@ export interface IOSWebViewProps extends WebViewSharedProps {
799
627
  unsupportedVersionComponent?: ElementType;
800
628
  }
801
629
 
802
- export interface MacOSWebViewProps extends WebViewSharedProps {
803
- /**
804
- * Does not store any data within the lifetime of the WebView.
805
- */
806
- incognito?: boolean;
807
-
808
- /**
809
- * Boolean value that determines whether the web view bounces
810
- * when it reaches the edge of the content. The default value is `true`.
811
- * @platform macos
812
- */
813
- bounces?: boolean;
814
-
815
- /**
816
- * Boolean value that determines whether scrolling is enabled in the
817
- * `WebView`. The default value is `true`.
818
- * @platform macos
819
- */
820
- scrollEnabled?: boolean;
821
-
822
- /**
823
- * If the value of this property is true, the scroll view stops on multiples
824
- * of the scroll view's bounds when the user scrolls.
825
- * The default value is false.
826
- * @platform macos
827
- */
828
- pagingEnabled?: boolean;
829
-
830
- /**
831
- * Controls whether to adjust the content inset for web views that are
832
- * placed behind a navigation bar, tab bar, or toolbar. The default value
833
- * is `true`.
834
- * @platform macos
835
- */
836
- automaticallyAdjustContentInsets?: boolean;
837
-
838
- /**
839
- * This property specifies how the safe area insets are used to modify the
840
- * content area of the scroll view. The default value of this property is
841
- * "never". Available on iOS 11 and later.
842
- */
843
- contentInsetAdjustmentBehavior?: ContentInsetAdjustmentBehavior;
844
-
845
- /**
846
- * The amount by which the web view content is inset from the edges of
847
- * the scroll view. Defaults to {top: 0, left: 0, bottom: 0, right: 0}.
848
- * @platform macos
849
- */
850
- contentInset?: ContentInsetProp;
851
-
852
- /**
853
- * Boolean that determines whether HTML5 videos play inline or use the
854
- * native full-screen controller. The default value is `false`.
855
- *
856
- * **NOTE** : In order for video to play inline, not only does this
857
- * property need to be set to `true`, but the video element in the HTML
858
- * document must also include the `webkit-playsinline` attribute.
859
- * @platform macos
860
- */
861
- allowsInlineMediaPlayback?: boolean;
862
- /**
863
- * Boolean value that indicates whether HTML5 videos can play Picture in Picture.
864
- * The default value is `true`.
865
- *
866
- * @platform ios
867
- */
868
- allowsPictureInPictureMediaPlayback?: boolean;
869
- /**
870
- * A Boolean value indicating whether AirPlay is allowed. The default value is `false`.
871
- * @platform macos
872
- */
873
- allowsAirPlayForMediaPlayback?: boolean;
874
- /**
875
- * Hide the accessory view when the keyboard is open. Default is false to be
876
- * backward compatible.
877
- */
878
- hideKeyboardAccessoryView?: boolean;
879
- /**
880
- * A Boolean value indicating whether horizontal swipe gestures will trigger
881
- * back-forward list navigations.
882
- */
883
- allowsBackForwardNavigationGestures?: boolean;
884
- /**
885
- * A Boolean value indicating whether WebKit WebView should be created using a shared
886
- * process pool, enabling WebViews to share cookies and localStorage between each other.
887
- * Default is true but can be set to false for backwards compatibility.
888
- * @platform macos
889
- */
890
- useSharedProcessPool?: boolean;
891
-
892
- /**
893
- * The custom user agent string.
894
- */
895
- userAgent?: string;
896
-
897
- /**
898
- * A Boolean value that determines whether pressing on a link
899
- * displays a preview of the destination for the link.
900
- *
901
- * This property is available on devices that support Force Touch trackpad.
902
- * @platform macos
903
- */
904
- allowsLinkPreview?: boolean;
905
-
906
- /**
907
- * Set true if shared cookies from HTTPCookieStorage should used for every load request.
908
- * The default value is `false`.
909
- * @platform macos
910
- */
911
- sharedCookiesEnabled?: boolean;
912
-
913
- /**
914
- * A Boolean value that determines whether scrolling is disabled in a particular direction.
915
- * The default value is `true`.
916
- * @platform macos
917
- */
918
- directionalLockEnabled?: boolean;
919
-
920
- /**
921
- * A Boolean value indicating whether web content can programmatically display the keyboard.
922
- *
923
- * When this property is set to true, the user must explicitly tap the elements in the
924
- * web view to display the keyboard (or other relevant input view) for that element.
925
- * When set to false, a focus event on an element causes the input view to be displayed
926
- * and associated with that element automatically.
927
- *
928
- * The default value is `true`.
929
- * @platform macos
930
- */
931
- keyboardDisplayRequiresUserAction?: boolean;
932
-
933
- /**
934
- * A String value that indicates which URLs the WebView's file can then
935
- * reference in scripts, AJAX requests, and CSS imports. This is only used
936
- * for WebViews that are loaded with a source.uri set to a `'file://'` URL.
937
- *
938
- * If not provided, the default is to only allow read access to the URL
939
- * provided in source.uri itself.
940
- * @platform macos
941
- */
942
- allowingReadAccessToURL?: string;
943
-
944
- /**
945
- * Boolean that sets whether JavaScript running in the context of a file
946
- * scheme URL should be allowed to access content from other file scheme URLs.
947
- * Including accessing content from other file scheme URLs
948
- * @platform macos
949
- */
950
- allowFileAccessFromFileURLs?: boolean;
951
-
952
- /**
953
- * Boolean that sets whether JavaScript running in the context of a file
954
- * scheme URL should be allowed to access content from any origin.
955
- * Including accessing content from other file scheme URLs
956
- * @platform macos
957
- */
958
- allowUniversalAccessFromFileURLs?: boolean;
959
-
960
- /**
961
- * Function that is invoked when the WebKit WebView content process gets terminated.
962
- * @platform macos
963
- */
964
- onContentProcessDidTerminate?: (event: WebViewTerminatedEvent) => void;
965
- }
966
-
967
630
  export interface AndroidWebViewProps extends WebViewSharedProps {
968
631
  onNavigationStateChange?: (event: WebViewNavigation) => void;
969
632
  onContentSizeChange?: (event: WebViewEvent) => void;
@@ -1022,28 +685,6 @@ export interface AndroidWebViewProps extends WebViewSharedProps {
1022
685
  */
1023
686
  geolocationEnabled?: boolean;
1024
687
 
1025
- /**
1026
- * Boolean that sets whether JavaScript running in the context of a file
1027
- * scheme URL should be allowed to access content from other file scheme URLs.
1028
- * Including accessing content from other file scheme URLs
1029
- * @platform android
1030
- */
1031
- allowFileAccessFromFileURLs?: boolean;
1032
-
1033
- /**
1034
- * Boolean that sets whether JavaScript running in the context of a file
1035
- * scheme URL should be allowed to access content from any origin.
1036
- * Including accessing content from other file scheme URLs
1037
- * @platform android
1038
- */
1039
- allowUniversalAccessFromFileURLs?: boolean;
1040
-
1041
- /**
1042
- * Sets whether the webview allow access to file system.
1043
- * @platform android
1044
- */
1045
- allowFileAccess?: boolean;
1046
-
1047
688
  /**
1048
689
  * Used on Android only, controls whether form autocomplete data should be saved
1049
690
  * @platform android
@@ -1217,12 +858,6 @@ export interface WebViewSharedProps extends ViewProps {
1217
858
  */
1218
859
  javaScriptEnabled?: boolean;
1219
860
 
1220
- /**
1221
- * A Boolean value indicating whether JavaScript can open windows without user interaction.
1222
- * The default value is `false`.
1223
- */
1224
- javaScriptCanOpenWindowsAutomatically?: boolean;
1225
-
1226
861
  /**
1227
862
  * Stylesheet object to set the style of the container view.
1228
863
  */
@@ -1267,12 +902,6 @@ export interface WebViewSharedProps extends ViewProps {
1267
902
  */
1268
903
  onError?: (event: WebViewErrorEvent) => void;
1269
904
 
1270
- /**
1271
- * Function that is invoked when the `WebView` receives an error status code.
1272
- * Works on iOS and Android (minimum API level 23).
1273
- */
1274
- onHttpError?: (event: WebViewHttpErrorEvent) => void;
1275
-
1276
905
  /**
1277
906
  * Function that is invoked when the `WebView` loading starts or ends.
1278
907
  */
@@ -1312,18 +941,6 @@ export interface WebViewSharedProps extends ViewProps {
1312
941
  */
1313
942
  injectedJavaScriptBeforeContentLoaded?: string;
1314
943
 
1315
- /**
1316
- * If `true` (default; mandatory for Android), loads the `injectedJavaScript` only into the main frame.
1317
- * If `false` (only supported on iOS and macOS), loads it into all frames (e.g. iframes).
1318
- */
1319
- injectedJavaScriptForMainFrameOnly?: boolean;
1320
-
1321
- /**
1322
- * If `true` (default; mandatory for Android), loads the `injectedJavaScriptBeforeContentLoaded` only into the main frame.
1323
- * If `false` (only supported on iOS and macOS), loads it into all frames (e.g. iframes).
1324
- */
1325
- injectedJavaScriptBeforeContentLoadedForMainFrameOnly?: boolean;
1326
-
1327
944
  /**
1328
945
  * Boolean value that determines whether a horizontal scroll indicator is
1329
946
  * shown in the `WebView`. The default value is `true`.
@@ -1366,22 +983,11 @@ export interface WebViewSharedProps extends ViewProps {
1366
983
  */
1367
984
  onShouldStartLoadWithRequest?: OnShouldStartLoadWithRequest;
1368
985
 
1369
- /**
1370
- * Override the native component used to render the WebView. Enables a custom native
1371
- * WebView which uses the same JavaScript as the original WebView.
1372
- */
1373
- nativeConfig?: WebViewNativeConfig;
1374
-
1375
986
  /**
1376
987
  * Should caching be enabled. Default is true.
1377
988
  */
1378
989
  cacheEnabled?: boolean;
1379
990
 
1380
- /**
1381
- * Append to the existing user-agent. Overridden if `userAgent` is set.
1382
- */
1383
- applicationNameForUserAgent?: string;
1384
-
1385
991
  /**
1386
992
  * An object that specifies the credentials of a user to be used for basic authentication.
1387
993
  */