|
@@ -249,6 +249,18 @@ export type OnShouldStartLoadWithRequest = (
|
249
|
249
|
event: ShouldStartLoadRequest,
|
250
|
250
|
) => boolean;
|
251
|
251
|
|
|
252
|
+export interface BasicAuthCredential {
|
|
253
|
+ /**
|
|
254
|
+ * A username used for basic authentication.
|
|
255
|
+ */
|
|
256
|
+ username: string;
|
|
257
|
+
|
|
258
|
+ /**
|
|
259
|
+ * A password used for basic authentication.
|
|
260
|
+ */
|
|
261
|
+ password: string;
|
|
262
|
+}
|
|
263
|
+
|
252
|
264
|
export interface CommonNativeWebViewProps extends ViewProps {
|
253
|
265
|
cacheEnabled?: boolean;
|
254
|
266
|
incognito?: boolean;
|
|
@@ -277,6 +289,7 @@ export interface CommonNativeWebViewProps extends ViewProps {
|
277
|
289
|
* Append to the existing user-agent. Overridden if `userAgent` is set.
|
278
|
290
|
*/
|
279
|
291
|
applicationNameForUserAgent?: string;
|
|
292
|
+ basicAuthCredential?: BasicAuthCredential;
|
280
|
293
|
}
|
281
|
294
|
|
282
|
295
|
export interface AndroidNativeWebViewProps extends CommonNativeWebViewProps {
|
|
@@ -1031,4 +1044,9 @@ export interface WebViewSharedProps extends ViewProps {
|
1031
|
1044
|
* Append to the existing user-agent. Overridden if `userAgent` is set.
|
1032
|
1045
|
*/
|
1033
|
1046
|
applicationNameForUserAgent?: string;
|
|
1047
|
+
|
|
1048
|
+ /**
|
|
1049
|
+ * An object that specifies the credentials of a user to be used for basic authentication.
|
|
1050
|
+ */
|
|
1051
|
+ basicAuthCredential?: BasicAuthCredential;
|
1034
|
1052
|
}
|