react-native-windows 0.72.0-preview.7 → 0.72.0-preview.9
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.
- package/Directory.Build.props +24 -19
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +0 -1
- package/Libraries/Components/TextInput/TextInput.d.ts +121 -86
- package/Libraries/Components/TextInput/TextInput.flow.js +121 -135
- package/Libraries/Components/TextInput/TextInput.js +126 -155
- package/Libraries/Components/TextInput/TextInput.windows.js +126 -155
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +0 -2
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -13
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +2 -4
- package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj.filters +2 -57
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +22 -17
- package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.h +0 -2
- package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiLoader.cpp +16 -0
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +41 -12
- package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems.filters +17 -6
- package/Microsoft.ReactNative.Managed/packages.lock.json +6 -6
- package/PropertySheets/External/Microsoft.ReactNative.Uwp.CSharpApp.targets +1 -1
- package/PropertySheets/External/Microsoft.ReactNative.Uwp.CppApp.targets +1 -1
- package/PropertySheets/External/Microsoft.ReactNative.WinAppSDK.CSharpApp.targets +1 -1
- package/PropertySheets/Generated/PackageVersion.g.props +2 -2
- package/PropertySheets/JSEngine.props +4 -4
- package/PropertySheets/Warnings.props +6 -0
- package/ReactCommon/ReactCommon.vcxproj +53 -1
- package/ReactCommon/cgmanifest.json +15 -0
- package/Scripts/Tfs/Layout-MSRN-Headers.ps1 +36 -0
- package/Shared/DevSupportManager.cpp +2 -9
- package/Shared/DevSupportManager.h +2 -6
- package/Shared/HermesRuntimeHolder.cpp +318 -81
- package/Shared/HermesRuntimeHolder.h +15 -19
- package/Shared/HermesSamplingProfiler.cpp +5 -6
- package/Shared/InspectorPackagerConnection.cpp +62 -108
- package/Shared/InspectorPackagerConnection.h +9 -21
- package/Shared/JSI/ScriptStore.h +18 -20
- package/Shared/JSI/V8RuntimeHolder.cpp +262 -0
- package/Shared/JSI/V8RuntimeHolder.h +37 -0
- package/Shared/OInstance.cpp +16 -36
- package/Shared/SafeLoadLibrary.cpp +41 -0
- package/Shared/SafeLoadLibrary.h +15 -0
- package/Shared/Shared.vcxitems +21 -10
- package/Shared/Shared.vcxitems.filters +23 -30
- package/codegen/rnwcoreJSI.h +2 -2
- package/package.json +15 -14
- package/template/cs-app-WinAppSDK/proj/ExperimentalFeatures.props +1 -1
- package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiRuntime.cpp +0 -2105
- package/Microsoft.ReactNative.Cxx/JSI/NodeApiJsiRuntime.h +0 -73
- package/Shared/HermesShim.cpp +0 -122
- package/Shared/HermesShim.h +0 -41
- package/Shared/JSI/NapiJsiV8RuntimeHolder.cpp +0 -209
- package/Shared/JSI/NapiJsiV8RuntimeHolder.h +0 -46
- package/Shared/V8JSIRuntimeHolder.cpp +0 -71
- package/Shared/V8JSIRuntimeHolder.h +0 -58
package/Directory.Build.props
CHANGED
|
@@ -21,6 +21,30 @@
|
|
|
21
21
|
<!-- When bumping the fmt version, be sure to bump the git hash of that version's commit and build fmt.vcxproj (to update its cgmanifest.json) too. -->
|
|
22
22
|
<FmtVersion>8.0.0</FmtVersion>
|
|
23
23
|
<FmtCommitHash>9e8b86fd2d9806672cc73133d21780dd182bfd24</FmtCommitHash>
|
|
24
|
+
<!-- Commit hash for https://github.com/microsoft/node-api-jsi code. -->
|
|
25
|
+
<NodeApiJsiCommitHash>53b897b03c1c7e57c3372acc6234447a44e150d6</NodeApiJsiCommitHash>
|
|
26
|
+
</PropertyGroup>
|
|
27
|
+
|
|
28
|
+
<!--
|
|
29
|
+
IMPORTANT: Traversals left in a directory will break some tools like midl, but we also cannot call
|
|
30
|
+
[MSBuild]::NormalizeDirectory on relative paths since cwd is not always correct. This logic should prefer to operate
|
|
31
|
+
on full paths and avoid extra normalization.
|
|
32
|
+
-->
|
|
33
|
+
<PropertyGroup>
|
|
34
|
+
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$(MSBuildThisFileDirectory)</ReactNativeWindowsDir>
|
|
35
|
+
|
|
36
|
+
<ReactNativeDir Condition="'$(ReactNativeDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native\package.json'))\node_modules\react-native\</ReactNativeDir>
|
|
37
|
+
|
|
38
|
+
<YogaDir Condition="'$(YogaDir)' == ''">$(ReactNativeDir)ReactCommon\yoga</YogaDir>
|
|
39
|
+
|
|
40
|
+
<FollyDir Condition="'$(FollyDir)' == '' AND Exists('$([MSBuild]::NormalizeDirectory($(ReactNativeDir)..\..\node_modules))')">$(ReactNativeDir)..\..\node_modules\.folly\folly-$(FollyVersion)</FollyDir>
|
|
41
|
+
<FollyDir>$([MSBuild]::NormalizeDirectory($(FollyDir)))</FollyDir>
|
|
42
|
+
|
|
43
|
+
<FmtDir Condition="'$(FmtDir)' == '' AND Exists('$([MSBuild]::NormalizeDirectory($(ReactNativeDir)..\..\node_modules))')">$(ReactNativeDir)..\..\node_modules\.fmt\fmt-$(FmtVersion)</FmtDir>
|
|
44
|
+
<FmtDir>$([MSBuild]::NormalizeDirectory($(FmtDir)))</FmtDir>
|
|
45
|
+
|
|
46
|
+
<NodeApiJsiDir Condition="'$(NodeApiJsiDir)' == '' AND Exists('$([MSBuild]::NormalizeDirectory($(ReactNativeDir)..\..\node_modules))')">$(ReactNativeDir)..\..\node_modules\.node-api-jsi\node-api-jsi-$(NodeApiJsiCommitHash)</NodeApiJsiDir>
|
|
47
|
+
<NodeApiJsiDir>$([MSBuild]::NormalizeDirectory($(NodeApiJsiDir)))</NodeApiJsiDir>
|
|
24
48
|
</PropertyGroup>
|
|
25
49
|
|
|
26
50
|
<PropertyGroup Label="Configuration">
|
|
@@ -46,25 +70,6 @@
|
|
|
46
70
|
<OutputPath Condition="'$(MSBuildProjectExtension)' == '.csproj'">$(OutDir)</OutputPath>
|
|
47
71
|
</PropertyGroup>
|
|
48
72
|
|
|
49
|
-
<!--
|
|
50
|
-
IMPORTANT: Traversals left in a directory will break some tools like midl, but we also cannot call
|
|
51
|
-
[MSBuild]::NormalizeDirectory on relative paths since cwd is not always correct. This logic should prefer to operate
|
|
52
|
-
on full paths and avoid extra normalization.
|
|
53
|
-
-->
|
|
54
|
-
<PropertyGroup>
|
|
55
|
-
<ReactNativeWindowsDir Condition="'$(ReactNativeWindowsDir)' == ''">$(MSBuildThisFileDirectory)</ReactNativeWindowsDir>
|
|
56
|
-
|
|
57
|
-
<ReactNativeDir Condition="'$(ReactNativeDir)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), 'node_modules\react-native\package.json'))\node_modules\react-native\</ReactNativeDir>
|
|
58
|
-
|
|
59
|
-
<YogaDir Condition="'$(YogaDir)' == ''">$(ReactNativeDir)ReactCommon\yoga</YogaDir>
|
|
60
|
-
|
|
61
|
-
<FollyDir Condition="'$(FollyDir)' == '' AND Exists('$([MSBuild]::NormalizeDirectory($(ReactNativeDir)..\..\node_modules))')">$(ReactNativeDir)..\..\node_modules\.folly\folly-$(FollyVersion)</FollyDir>
|
|
62
|
-
<FollyDir>$([MSBuild]::NormalizeDirectory($(FollyDir)))</FollyDir>
|
|
63
|
-
|
|
64
|
-
<FmtDir Condition="'$(FmtDir)' == '' AND Exists('$([MSBuild]::NormalizeDirectory($(ReactNativeDir)..\..\node_modules))')">$(ReactNativeDir)..\..\node_modules\.fmt\fmt-$(FmtVersion)</FmtDir>
|
|
65
|
-
<FmtDir>$([MSBuild]::NormalizeDirectory($(FmtDir)))</FmtDir>
|
|
66
|
-
</PropertyGroup>
|
|
67
|
-
|
|
68
73
|
<PropertyGroup Label="NuGet" Condition="'$(MSBuildProjectExtension)' == '.vcxproj'">
|
|
69
74
|
<!-- See https://docs.microsoft.com/en-us/nuget/reference/msbuild-targets#restore-target -->
|
|
70
75
|
<!-- RestoreUseStaticGraphEvaluation broke in VS 17.6, see https://github.com/microsoft/react-native-windows/issues/11670 -->
|
|
@@ -692,7 +692,6 @@ export const __INTERNAL_VIEW_CONFIG: PartialViewConfig = {
|
|
|
692
692
|
fontStyle: true,
|
|
693
693
|
textShadowOffset: true,
|
|
694
694
|
selectionColor: {process: require('../../StyleSheet/processColor').default},
|
|
695
|
-
selection: true,
|
|
696
695
|
placeholderTextColor: {
|
|
697
696
|
process: require('../../StyleSheet/processColor').default,
|
|
698
697
|
},
|
|
@@ -289,92 +289,6 @@ export interface TextInputIOSProps {
|
|
|
289
289
|
* @see https://reactnative.dev/docs/textinput#props
|
|
290
290
|
*/
|
|
291
291
|
export interface TextInputAndroidProps {
|
|
292
|
-
/**
|
|
293
|
-
* Specifies autocomplete hints for the system, so it can provide autofill. On Android, the system will always attempt to offer autofill by using heuristics to identify the type of content.
|
|
294
|
-
* To disable autocomplete, set `autoComplete` to `off`.
|
|
295
|
-
*
|
|
296
|
-
* *Android Only*
|
|
297
|
-
*
|
|
298
|
-
* Possible values for `autoComplete` are:
|
|
299
|
-
*
|
|
300
|
-
* - `birthdate-day`
|
|
301
|
-
* - `birthdate-full`
|
|
302
|
-
* - `birthdate-month`
|
|
303
|
-
* - `birthdate-year`
|
|
304
|
-
* - `cc-csc`
|
|
305
|
-
* - `cc-exp`
|
|
306
|
-
* - `cc-exp-day`
|
|
307
|
-
* - `cc-exp-month`
|
|
308
|
-
* - `cc-exp-year`
|
|
309
|
-
* - `cc-number`
|
|
310
|
-
* - `email`
|
|
311
|
-
* - `gender`
|
|
312
|
-
* - `name`
|
|
313
|
-
* - `name-family`
|
|
314
|
-
* - `name-given`
|
|
315
|
-
* - `name-middle`
|
|
316
|
-
* - `name-middle-initial`
|
|
317
|
-
* - `name-prefix`
|
|
318
|
-
* - `name-suffix`
|
|
319
|
-
* - `password`
|
|
320
|
-
* - `password-new`
|
|
321
|
-
* - `postal-address`
|
|
322
|
-
* - `postal-address-country`
|
|
323
|
-
* - `postal-address-extended`
|
|
324
|
-
* - `postal-address-extended-postal-code`
|
|
325
|
-
* - `postal-address-locality`
|
|
326
|
-
* - `postal-address-region`
|
|
327
|
-
* - `postal-code`
|
|
328
|
-
* - `street-address`
|
|
329
|
-
* - `sms-otp`
|
|
330
|
-
* - `tel`
|
|
331
|
-
* - `tel-country-code`
|
|
332
|
-
* - `tel-national`
|
|
333
|
-
* - `tel-device`
|
|
334
|
-
* - `username`
|
|
335
|
-
* - `username-new`
|
|
336
|
-
* - `off`
|
|
337
|
-
*/
|
|
338
|
-
autoComplete?:
|
|
339
|
-
| 'birthdate-day'
|
|
340
|
-
| 'birthdate-full'
|
|
341
|
-
| 'birthdate-month'
|
|
342
|
-
| 'birthdate-year'
|
|
343
|
-
| 'cc-csc'
|
|
344
|
-
| 'cc-exp'
|
|
345
|
-
| 'cc-exp-day'
|
|
346
|
-
| 'cc-exp-month'
|
|
347
|
-
| 'cc-exp-year'
|
|
348
|
-
| 'cc-number'
|
|
349
|
-
| 'email'
|
|
350
|
-
| 'gender'
|
|
351
|
-
| 'name'
|
|
352
|
-
| 'name-family'
|
|
353
|
-
| 'name-given'
|
|
354
|
-
| 'name-middle'
|
|
355
|
-
| 'name-middle-initial'
|
|
356
|
-
| 'name-prefix'
|
|
357
|
-
| 'name-suffix'
|
|
358
|
-
| 'password'
|
|
359
|
-
| 'password-new'
|
|
360
|
-
| 'postal-address'
|
|
361
|
-
| 'postal-address-country'
|
|
362
|
-
| 'postal-address-extended'
|
|
363
|
-
| 'postal-address-extended-postal-code'
|
|
364
|
-
| 'postal-address-locality'
|
|
365
|
-
| 'postal-address-region'
|
|
366
|
-
| 'postal-code'
|
|
367
|
-
| 'street-address'
|
|
368
|
-
| 'sms-otp'
|
|
369
|
-
| 'tel'
|
|
370
|
-
| 'tel-country-code'
|
|
371
|
-
| 'tel-national'
|
|
372
|
-
| 'tel-device'
|
|
373
|
-
| 'username'
|
|
374
|
-
| 'username-new'
|
|
375
|
-
| 'off'
|
|
376
|
-
| undefined;
|
|
377
|
-
|
|
378
292
|
/**
|
|
379
293
|
* When provided it will set the color of the cursor (or "caret") in the component.
|
|
380
294
|
* Unlike the behavior of `selectionColor` the cursor color will be set independently
|
|
@@ -558,6 +472,127 @@ export interface TextInputProps
|
|
|
558
472
|
*/
|
|
559
473
|
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters' | undefined;
|
|
560
474
|
|
|
475
|
+
/**
|
|
476
|
+
* Specifies autocomplete hints for the system, so it can provide autofill.
|
|
477
|
+
* On Android, the system will always attempt to offer autofill by using heuristics to identify the type of content.
|
|
478
|
+
* To disable autocomplete, set autoComplete to off.
|
|
479
|
+
*
|
|
480
|
+
* The following values work across platforms:
|
|
481
|
+
*
|
|
482
|
+
* - `additional-name`
|
|
483
|
+
* - `address-line1`
|
|
484
|
+
* - `address-line2`
|
|
485
|
+
* - `cc-number`
|
|
486
|
+
* - `country`
|
|
487
|
+
* - `current-password`
|
|
488
|
+
* - `email`
|
|
489
|
+
* - `family-name`
|
|
490
|
+
* - `given-name`
|
|
491
|
+
* - `honorific-prefix`
|
|
492
|
+
* - `honorific-suffix`
|
|
493
|
+
* - `name`
|
|
494
|
+
* - `new-password`
|
|
495
|
+
* - `off`
|
|
496
|
+
* - `one-time-code`
|
|
497
|
+
* - `postal-code`
|
|
498
|
+
* - `street-address`
|
|
499
|
+
* - `tel`
|
|
500
|
+
* - `username`
|
|
501
|
+
*
|
|
502
|
+
* The following values work on iOS only:
|
|
503
|
+
*
|
|
504
|
+
* - `nickname`
|
|
505
|
+
* - `organization`
|
|
506
|
+
* - `organization-title`
|
|
507
|
+
* - `url`
|
|
508
|
+
*
|
|
509
|
+
* The following values work on Android only:
|
|
510
|
+
*
|
|
511
|
+
* - `birthdate-day`
|
|
512
|
+
* - `birthdate-full`
|
|
513
|
+
* - `birthdate-month`
|
|
514
|
+
* - `birthdate-year`
|
|
515
|
+
* - `cc-csc`
|
|
516
|
+
* - `cc-exp`
|
|
517
|
+
* - `cc-exp-day`
|
|
518
|
+
* - `cc-exp-month`
|
|
519
|
+
* - `cc-exp-year`
|
|
520
|
+
* - `gender`
|
|
521
|
+
* - `name-family`
|
|
522
|
+
* - `name-given`
|
|
523
|
+
* - `name-middle`
|
|
524
|
+
* - `name-middle-initial`
|
|
525
|
+
* - `name-prefix`
|
|
526
|
+
* - `name-suffix`
|
|
527
|
+
* - `password`
|
|
528
|
+
* - `password-new`
|
|
529
|
+
* - `postal-address`
|
|
530
|
+
* - `postal-address-country`
|
|
531
|
+
* - `postal-address-extended`
|
|
532
|
+
* - `postal-address-extended-postal-code`
|
|
533
|
+
* - `postal-address-locality`
|
|
534
|
+
* - `postal-address-region`
|
|
535
|
+
* - `sms-otp`
|
|
536
|
+
* - `tel-country-code`
|
|
537
|
+
* - `tel-national`
|
|
538
|
+
* - `tel-device`
|
|
539
|
+
* - `username-new`
|
|
540
|
+
*/
|
|
541
|
+
autoComplete?:
|
|
542
|
+
| 'additional-name'
|
|
543
|
+
| 'address-line1'
|
|
544
|
+
| 'address-line2'
|
|
545
|
+
| 'birthdate-day'
|
|
546
|
+
| 'birthdate-full'
|
|
547
|
+
| 'birthdate-month'
|
|
548
|
+
| 'birthdate-year'
|
|
549
|
+
| 'cc-csc'
|
|
550
|
+
| 'cc-exp'
|
|
551
|
+
| 'cc-exp-day'
|
|
552
|
+
| 'cc-exp-month'
|
|
553
|
+
| 'cc-exp-year'
|
|
554
|
+
| 'cc-number'
|
|
555
|
+
| 'country'
|
|
556
|
+
| 'current-password'
|
|
557
|
+
| 'email'
|
|
558
|
+
| 'family-name'
|
|
559
|
+
| 'gender'
|
|
560
|
+
| 'given-name'
|
|
561
|
+
| 'honorific-prefix'
|
|
562
|
+
| 'honorific-suffix'
|
|
563
|
+
| 'name'
|
|
564
|
+
| 'name-family'
|
|
565
|
+
| 'name-given'
|
|
566
|
+
| 'name-middle'
|
|
567
|
+
| 'name-middle-initial'
|
|
568
|
+
| 'name-prefix'
|
|
569
|
+
| 'name-suffix'
|
|
570
|
+
| 'new-password'
|
|
571
|
+
| 'nickname'
|
|
572
|
+
| 'one-time-code'
|
|
573
|
+
| 'organization'
|
|
574
|
+
| 'organization-title'
|
|
575
|
+
| 'password'
|
|
576
|
+
| 'password-new'
|
|
577
|
+
| 'postal-address'
|
|
578
|
+
| 'postal-address-country'
|
|
579
|
+
| 'postal-address-extended'
|
|
580
|
+
| 'postal-address-extended-postal-code'
|
|
581
|
+
| 'postal-address-locality'
|
|
582
|
+
| 'postal-address-region'
|
|
583
|
+
| 'postal-code'
|
|
584
|
+
| 'street-address'
|
|
585
|
+
| 'sms-otp'
|
|
586
|
+
| 'tel'
|
|
587
|
+
| 'tel-country-code'
|
|
588
|
+
| 'tel-national'
|
|
589
|
+
| 'tel-device'
|
|
590
|
+
| 'url'
|
|
591
|
+
| 'username'
|
|
592
|
+
| 'username-new'
|
|
593
|
+
| 'off'
|
|
594
|
+
| undefined;
|
|
595
|
+
|
|
561
596
|
/**
|
|
562
597
|
* If false, disables auto-correct.
|
|
563
598
|
* The default value is true.
|
|
@@ -196,36 +196,6 @@ export type enterKeyHintType =
|
|
|
196
196
|
type PasswordRules = string;
|
|
197
197
|
|
|
198
198
|
type IOSProps = $ReadOnly<{|
|
|
199
|
-
/**
|
|
200
|
-
* Give the keyboard and the system information about the
|
|
201
|
-
* expected semantic meaning for the content that users enter.
|
|
202
|
-
* @platform ios
|
|
203
|
-
*/
|
|
204
|
-
autoComplete?: ?(
|
|
205
|
-
| 'address-line1'
|
|
206
|
-
| 'address-line2'
|
|
207
|
-
| 'cc-number'
|
|
208
|
-
| 'current-password'
|
|
209
|
-
| 'country'
|
|
210
|
-
| 'email'
|
|
211
|
-
| 'name'
|
|
212
|
-
| 'additional-name'
|
|
213
|
-
| 'family-name'
|
|
214
|
-
| 'given-name'
|
|
215
|
-
| 'nickname'
|
|
216
|
-
| 'honorific-prefix'
|
|
217
|
-
| 'honorific-suffix'
|
|
218
|
-
| 'new-password'
|
|
219
|
-
| 'off'
|
|
220
|
-
| 'one-time-code'
|
|
221
|
-
| 'organization'
|
|
222
|
-
| 'organization-title'
|
|
223
|
-
| 'postal-code'
|
|
224
|
-
| 'street-address'
|
|
225
|
-
| 'tel'
|
|
226
|
-
| 'url'
|
|
227
|
-
| 'username'
|
|
228
|
-
),
|
|
229
199
|
/**
|
|
230
200
|
* When the clear button should appear on the right side of the text view.
|
|
231
201
|
* This property is supported only for single-line TextInput component.
|
|
@@ -328,111 +298,6 @@ type IOSProps = $ReadOnly<{|
|
|
|
328
298
|
|}>;
|
|
329
299
|
|
|
330
300
|
type AndroidProps = $ReadOnly<{|
|
|
331
|
-
/**
|
|
332
|
-
* Specifies autocomplete hints for the system, so it can provide autofill. On Android, the system will always attempt to offer autofill by using heuristics to identify the type of content.
|
|
333
|
-
* To disable autocomplete, set `autoComplete` to `off`.
|
|
334
|
-
*
|
|
335
|
-
* *Android Only*
|
|
336
|
-
*
|
|
337
|
-
* Possible values for `autoComplete` are:
|
|
338
|
-
*
|
|
339
|
-
* - `birthdate-day`
|
|
340
|
-
* - `birthdate-full`
|
|
341
|
-
* - `birthdate-month`
|
|
342
|
-
* - `birthdate-year`
|
|
343
|
-
* - `cc-csc`
|
|
344
|
-
* - `cc-exp`
|
|
345
|
-
* - `cc-exp-day`
|
|
346
|
-
* - `cc-exp-month`
|
|
347
|
-
* - `cc-exp-year`
|
|
348
|
-
* - `cc-number`
|
|
349
|
-
* - `email`
|
|
350
|
-
* - `gender`
|
|
351
|
-
* - `name`
|
|
352
|
-
* - `name-family`
|
|
353
|
-
* - `name-given`
|
|
354
|
-
* - `name-middle`
|
|
355
|
-
* - `name-middle-initial`
|
|
356
|
-
* - `name-prefix`
|
|
357
|
-
* - `name-suffix`
|
|
358
|
-
* - `password`
|
|
359
|
-
* - `password-new`
|
|
360
|
-
* - `postal-address`
|
|
361
|
-
* - `postal-address-country`
|
|
362
|
-
* - `postal-address-extended`
|
|
363
|
-
* - `postal-address-extended-postal-code`
|
|
364
|
-
* - `postal-address-locality`
|
|
365
|
-
* - `postal-address-region`
|
|
366
|
-
* - `postal-code`
|
|
367
|
-
* - `street-address`
|
|
368
|
-
* - `sms-otp`
|
|
369
|
-
* - `tel`
|
|
370
|
-
* - `tel-country-code`
|
|
371
|
-
* - `tel-national`
|
|
372
|
-
* - `tel-device`
|
|
373
|
-
* - `username`
|
|
374
|
-
* - `username-new`
|
|
375
|
-
* - `off`
|
|
376
|
-
*
|
|
377
|
-
* @platform android
|
|
378
|
-
*/
|
|
379
|
-
autoComplete?: ?(
|
|
380
|
-
| 'birthdate-day'
|
|
381
|
-
| 'birthdate-full'
|
|
382
|
-
| 'birthdate-month'
|
|
383
|
-
| 'birthdate-year'
|
|
384
|
-
| 'cc-csc'
|
|
385
|
-
| 'cc-exp'
|
|
386
|
-
| 'cc-exp-day'
|
|
387
|
-
| 'cc-exp-month'
|
|
388
|
-
| 'cc-exp-year'
|
|
389
|
-
| 'cc-number'
|
|
390
|
-
| 'email'
|
|
391
|
-
| 'gender'
|
|
392
|
-
| 'name'
|
|
393
|
-
| 'name-family'
|
|
394
|
-
| 'name-given'
|
|
395
|
-
| 'name-middle'
|
|
396
|
-
| 'name-middle-initial'
|
|
397
|
-
| 'name-prefix'
|
|
398
|
-
| 'name-suffix'
|
|
399
|
-
| 'password'
|
|
400
|
-
| 'password-new'
|
|
401
|
-
| 'postal-address'
|
|
402
|
-
| 'postal-address-country'
|
|
403
|
-
| 'postal-address-extended'
|
|
404
|
-
| 'postal-address-extended-postal-code'
|
|
405
|
-
| 'postal-address-locality'
|
|
406
|
-
| 'postal-address-region'
|
|
407
|
-
| 'postal-code'
|
|
408
|
-
| 'street-address'
|
|
409
|
-
| 'sms-otp'
|
|
410
|
-
| 'tel'
|
|
411
|
-
| 'tel-country-code'
|
|
412
|
-
| 'tel-national'
|
|
413
|
-
| 'tel-device'
|
|
414
|
-
| 'username'
|
|
415
|
-
| 'username-new'
|
|
416
|
-
| 'off'
|
|
417
|
-
// additional HTML autocomplete values
|
|
418
|
-
| 'address-line1'
|
|
419
|
-
| 'address-line2'
|
|
420
|
-
| 'bday'
|
|
421
|
-
| 'bday-day'
|
|
422
|
-
| 'bday-month'
|
|
423
|
-
| 'bday-year'
|
|
424
|
-
| 'country'
|
|
425
|
-
| 'current-password'
|
|
426
|
-
| 'honorific-prefix'
|
|
427
|
-
| 'honorific-suffix'
|
|
428
|
-
| 'additional-name'
|
|
429
|
-
| 'family-name'
|
|
430
|
-
| 'given-name'
|
|
431
|
-
| 'new-password'
|
|
432
|
-
| 'one-time-code'
|
|
433
|
-
| 'sex'
|
|
434
|
-
),
|
|
435
|
-
|
|
436
301
|
/**
|
|
437
302
|
* When provided it will set the color of the cursor (or "caret") in the component.
|
|
438
303
|
* Unlike the behavior of `selectionColor` the cursor color will be set independently
|
|
@@ -533,6 +398,127 @@ export type Props = $ReadOnly<{|
|
|
|
533
398
|
*/
|
|
534
399
|
autoCapitalize?: ?AutoCapitalize,
|
|
535
400
|
|
|
401
|
+
/**
|
|
402
|
+
* Specifies autocomplete hints for the system, so it can provide autofill.
|
|
403
|
+
* On Android, the system will always attempt to offer autofill by using heuristics to identify the type of content.
|
|
404
|
+
* To disable autocomplete, set autoComplete to off.
|
|
405
|
+
*
|
|
406
|
+
* The following values work across platforms:
|
|
407
|
+
*
|
|
408
|
+
* - `additional-name`
|
|
409
|
+
* - `address-line1`
|
|
410
|
+
* - `address-line2`
|
|
411
|
+
* - `cc-number`
|
|
412
|
+
* - `country`
|
|
413
|
+
* - `current-password`
|
|
414
|
+
* - `email`
|
|
415
|
+
* - `family-name`
|
|
416
|
+
* - `given-name`
|
|
417
|
+
* - `honorific-prefix`
|
|
418
|
+
* - `honorific-suffix`
|
|
419
|
+
* - `name`
|
|
420
|
+
* - `new-password`
|
|
421
|
+
* - `off`
|
|
422
|
+
* - `one-time-code`
|
|
423
|
+
* - `postal-code`
|
|
424
|
+
* - `street-address`
|
|
425
|
+
* - `tel`
|
|
426
|
+
* - `username`
|
|
427
|
+
*
|
|
428
|
+
* The following values work on iOS only:
|
|
429
|
+
*
|
|
430
|
+
* - `nickname`
|
|
431
|
+
* - `organization`
|
|
432
|
+
* - `organization-title`
|
|
433
|
+
* - `url`
|
|
434
|
+
*
|
|
435
|
+
* The following values work on Android only:
|
|
436
|
+
*
|
|
437
|
+
* - `birthdate-day`
|
|
438
|
+
* - `birthdate-full`
|
|
439
|
+
* - `birthdate-month`
|
|
440
|
+
* - `birthdate-year`
|
|
441
|
+
* - `cc-csc`
|
|
442
|
+
* - `cc-exp`
|
|
443
|
+
* - `cc-exp-day`
|
|
444
|
+
* - `cc-exp-month`
|
|
445
|
+
* - `cc-exp-year`
|
|
446
|
+
* - `gender`
|
|
447
|
+
* - `name-family`
|
|
448
|
+
* - `name-given`
|
|
449
|
+
* - `name-middle`
|
|
450
|
+
* - `name-middle-initial`
|
|
451
|
+
* - `name-prefix`
|
|
452
|
+
* - `name-suffix`
|
|
453
|
+
* - `password`
|
|
454
|
+
* - `password-new`
|
|
455
|
+
* - `postal-address`
|
|
456
|
+
* - `postal-address-country`
|
|
457
|
+
* - `postal-address-extended`
|
|
458
|
+
* - `postal-address-extended-postal-code`
|
|
459
|
+
* - `postal-address-locality`
|
|
460
|
+
* - `postal-address-region`
|
|
461
|
+
* - `sms-otp`
|
|
462
|
+
* - `tel-country-code`
|
|
463
|
+
* - `tel-national`
|
|
464
|
+
* - `tel-device`
|
|
465
|
+
* - `username-new`
|
|
466
|
+
*/
|
|
467
|
+
autoComplete?: ?(
|
|
468
|
+
| 'additional-name'
|
|
469
|
+
| 'address-line1'
|
|
470
|
+
| 'address-line2'
|
|
471
|
+
| 'birthdate-day'
|
|
472
|
+
| 'birthdate-full'
|
|
473
|
+
| 'birthdate-month'
|
|
474
|
+
| 'birthdate-year'
|
|
475
|
+
| 'cc-csc'
|
|
476
|
+
| 'cc-exp'
|
|
477
|
+
| 'cc-exp-day'
|
|
478
|
+
| 'cc-exp-month'
|
|
479
|
+
| 'cc-exp-year'
|
|
480
|
+
| 'cc-number'
|
|
481
|
+
| 'country'
|
|
482
|
+
| 'current-password'
|
|
483
|
+
| 'email'
|
|
484
|
+
| 'family-name'
|
|
485
|
+
| 'gender'
|
|
486
|
+
| 'given-name'
|
|
487
|
+
| 'honorific-prefix'
|
|
488
|
+
| 'honorific-suffix'
|
|
489
|
+
| 'name'
|
|
490
|
+
| 'name-family'
|
|
491
|
+
| 'name-given'
|
|
492
|
+
| 'name-middle'
|
|
493
|
+
| 'name-middle-initial'
|
|
494
|
+
| 'name-prefix'
|
|
495
|
+
| 'name-suffix'
|
|
496
|
+
| 'new-password'
|
|
497
|
+
| 'nickname'
|
|
498
|
+
| 'one-time-code'
|
|
499
|
+
| 'organization'
|
|
500
|
+
| 'organization-title'
|
|
501
|
+
| 'password'
|
|
502
|
+
| 'password-new'
|
|
503
|
+
| 'postal-address'
|
|
504
|
+
| 'postal-address-country'
|
|
505
|
+
| 'postal-address-extended'
|
|
506
|
+
| 'postal-address-extended-postal-code'
|
|
507
|
+
| 'postal-address-locality'
|
|
508
|
+
| 'postal-address-region'
|
|
509
|
+
| 'postal-code'
|
|
510
|
+
| 'street-address'
|
|
511
|
+
| 'sms-otp'
|
|
512
|
+
| 'tel'
|
|
513
|
+
| 'tel-country-code'
|
|
514
|
+
| 'tel-national'
|
|
515
|
+
| 'tel-device'
|
|
516
|
+
| 'url'
|
|
517
|
+
| 'username'
|
|
518
|
+
| 'username-new'
|
|
519
|
+
| 'off'
|
|
520
|
+
),
|
|
521
|
+
|
|
536
522
|
/**
|
|
537
523
|
* If `false`, disables auto-correct. The default value is `true`.
|
|
538
524
|
*/
|