Przeglądaj źródła

fix(types): Remove readonly definition in WebViewTypes.ts (#1272)

Co-authored-by: Giovanni Montenegro <giovanni.montenegro@fincons.com>
Giovanni Montenegro 4 lat temu
rodzic
commit
3c06d78239
No account linked to committer's email address
1 zmienionych plików z 5 dodań i 5 usunięć
  1. 5
    5
      src/WebViewTypes.ts

+ 5
- 5
src/WebViewTypes.ts Wyświetl plik

@@ -272,7 +272,7 @@ export interface AndroidNativeWebViewProps extends CommonNativeWebViewProps {
272 272
   saveFormDataDisabled?: boolean;
273 273
   textZoom?: number;
274 274
   thirdPartyCookiesEnabled?: boolean;
275
-  urlPrefixesForDefaultIntent?: readonly string[];
275
+  readonly urlPrefixesForDefaultIntent?: string[];
276 276
 }
277 277
 
278 278
 export enum ContentInsetAdjustmentBehavior {
@@ -291,7 +291,7 @@ export interface IOSNativeWebViewProps extends CommonNativeWebViewProps {
291 291
   bounces?: boolean;
292 292
   contentInset?: ContentInsetProp;
293 293
   contentInsetAdjustmentBehavior?: ContentInsetAdjustmentBehavior;
294
-  dataDetectorTypes?: DataDetectorTypes | readonly DataDetectorTypes[];
294
+  readonly dataDetectorTypes?: DataDetectorTypes | DataDetectorTypes[];
295 295
   decelerationRate?: number;
296 296
   directionalLockEnabled?: boolean;
297 297
   hideKeyboardAccessoryView?: boolean;
@@ -409,7 +409,7 @@ export interface IOSWebViewProps extends WebViewSharedProps {
409 409
    *
410 410
    * @platform ios
411 411
    */
412
-  dataDetectorTypes?: DataDetectorTypes | readonly DataDetectorTypes[];
412
+  readonly dataDetectorTypes?: DataDetectorTypes | DataDetectorTypes[];
413 413
 
414 414
   /**
415 415
    * Boolean that determines whether HTML5 videos play inline or use the
@@ -728,7 +728,7 @@ export interface AndroidWebViewProps extends WebViewSharedProps {
728 728
    * Use this to list URLs that WebView cannot handle, e.g. a PDF url.
729 729
    * @platform android
730 730
    */
731
-  urlPrefixesForDefaultIntent?: readonly string[];
731
+  readonly urlPrefixesForDefaultIntent?: string[];
732 732
 
733 733
   /**
734 734
    * Boolean value to disable Hardware Acceleration in the `WebView`. Used on Android only
@@ -907,7 +907,7 @@ export interface WebViewSharedProps extends ViewProps {
907 907
    * this whitelist, we will open the URL in Safari.
908 908
    * The default whitelisted origins are "http://*" and "https://*".
909 909
    */
910
-  originWhitelist?: readonly string[];
910
+  readonly originWhitelist?: string[];
911 911
 
912 912
   /**
913 913
    * Function that allows custom handling of any web view requests. Return