@@ -168,12 +168,12 @@ export interface NativeProps extends ViewProps {
168
168
onRenderProcessGone ?: DirectEventHandler < WebViewRenderProcessGoneEvent > ;
169
169
overScrollMode ?: string ;
170
170
saveFormDataDisabled ?: boolean ;
171
- scalesPageToFit ?: boolean ;
172
- setBuiltInZoomControls ?: boolean ;
171
+ scalesPageToFit ?: WithDefault < boolean , true > ;
172
+ setBuiltInZoomControls ?: WithDefault < boolean , true > ;
173
173
setDisplayZoomControls ?: boolean ;
174
- setSupportMultipleWindows ?: boolean ;
174
+ setSupportMultipleWindows ?: WithDefault < boolean , true > ;
175
175
textZoom ?: Int32 ;
176
- thirdPartyCookiesEnabled ?: boolean ;
176
+ thirdPartyCookiesEnabled ?: WithDefault < boolean , true > ;
177
177
// Workaround to watch if listener if defined
178
178
hasOnScroll ?: boolean ;
179
179
// !Android only
@@ -184,10 +184,10 @@ export interface NativeProps extends ViewProps {
184
184
allowsInlineMediaPlayback ?: boolean ;
185
185
allowsPictureInPictureMediaPlayback ?: boolean ;
186
186
allowsAirPlayForMediaPlayback ?: boolean ;
187
- allowsLinkPreview ?: boolean ;
188
- automaticallyAdjustContentInsets ?: boolean ;
189
- autoManageStatusBarEnabled ?: boolean ;
190
- bounces ?: boolean ;
187
+ allowsLinkPreview ?: WithDefault < boolean , true > ;
188
+ automaticallyAdjustContentInsets ?: WithDefault < boolean , true > ;
189
+ autoManageStatusBarEnabled ?: WithDefault < boolean , true > ;
190
+ bounces ?: WithDefault < boolean , true > ;
191
191
contentInset ?: Readonly < {
192
192
top ?: Double ;
193
193
left ?: Double ;
@@ -217,10 +217,10 @@ export interface NativeProps extends ViewProps {
217
217
'phoneNumber'
218
218
> ;
219
219
decelerationRate ?: Double ;
220
- directionalLockEnabled ?: boolean ;
220
+ directionalLockEnabled ?: WithDefault < boolean , true > ;
221
221
enableApplePay ?: boolean ;
222
222
hideKeyboardAccessoryView ?: boolean ;
223
- keyboardDisplayRequiresUserAction ?: boolean ;
223
+ keyboardDisplayRequiresUserAction ?: WithDefault < boolean , true > ;
224
224
limitsNavigationsToAppBoundDomains ?: boolean ;
225
225
mediaCapturePermissionGrantType ?: WithDefault <
226
226
| 'prompt'
@@ -233,10 +233,10 @@ export interface NativeProps extends ViewProps {
233
233
pagingEnabled ?: boolean ;
234
234
pullToRefreshEnabled ?: boolean ;
235
235
refreshControlLightMode ?: boolean ;
236
- scrollEnabled ?: boolean ;
236
+ scrollEnabled ?: WithDefault < boolean , true > ;
237
237
sharedCookiesEnabled ?: boolean ;
238
- textInteractionEnabled ?: boolean ;
239
- useSharedProcessPool ?: boolean ;
238
+ textInteractionEnabled ?: WithDefault < boolean , true > ;
239
+ useSharedProcessPool ?: WithDefault < boolean , true > ;
240
240
onContentProcessDidTerminate ?: DirectEventHandler < WebViewNativeEvent > ;
241
241
onCustomMenuSelection ?: DirectEventHandler < WebViewCustomMenuSelectionEvent > ;
242
242
onFileDownload ?: DirectEventHandler < WebViewDownloadEvent > ;
@@ -245,7 +245,7 @@ export interface NativeProps extends ViewProps {
245
245
suppressMenuItems ?: Readonly < string > [ ] ;
246
246
// Workaround to watch if listener if defined
247
247
hasOnFileDownload ?: boolean ;
248
- fraudulentWebsiteWarningEnabled ?: boolean ;
248
+ fraudulentWebsiteWarningEnabled ?: WithDefault < boolean , true > ;
249
249
// !iOS only
250
250
251
251
allowFileAccessFromFileURLs ?: boolean ;
@@ -255,16 +255,19 @@ export interface NativeProps extends ViewProps {
255
255
username : string ;
256
256
password : string ;
257
257
} > ;
258
- cacheEnabled ?: boolean ;
258
+ cacheEnabled ?: WithDefault < boolean , true > ;
259
259
incognito ?: boolean ;
260
260
injectedJavaScript ?: string ;
261
261
injectedJavaScriptBeforeContentLoaded ?: string ;
262
- injectedJavaScriptForMainFrameOnly ?: boolean ;
263
- injectedJavaScriptBeforeContentLoadedForMainFrameOnly ?: boolean ;
262
+ injectedJavaScriptForMainFrameOnly ?: WithDefault < boolean , true > ;
263
+ injectedJavaScriptBeforeContentLoadedForMainFrameOnly ?: WithDefault <
264
+ boolean ,
265
+ true
266
+ > ;
264
267
javaScriptCanOpenWindowsAutomatically ?: boolean ;
265
- javaScriptEnabled ?: boolean ;
268
+ javaScriptEnabled ?: WithDefault < boolean , true > ;
266
269
webviewDebuggingEnabled ?: boolean ;
267
- mediaPlaybackRequiresUserAction ?: boolean ;
270
+ mediaPlaybackRequiresUserAction ?: WithDefault < boolean , true > ;
268
271
messagingEnabled : boolean ;
269
272
onLoadingError : DirectEventHandler < WebViewErrorEvent > ;
270
273
onLoadingFinish : DirectEventHandler < WebViewNavigationEvent > ;
@@ -276,8 +279,8 @@ export interface NativeProps extends ViewProps {
276
279
hasOnOpenWindowEvent ?: boolean ;
277
280
onScroll ?: DirectEventHandler < ScrollEvent > ;
278
281
onShouldStartLoadWithRequest : DirectEventHandler < ShouldStartLoadRequestEvent > ;
279
- showsHorizontalScrollIndicator ?: boolean ;
280
- showsVerticalScrollIndicator ?: boolean ;
282
+ showsHorizontalScrollIndicator ?: WithDefault < boolean , true > ;
283
+ showsVerticalScrollIndicator ?: WithDefault < boolean , true > ;
281
284
newSource : Readonly < {
282
285
uri ?: string ;
283
286
method ?: string ;
0 commit comments