@office-iss/react-native-win32 0.72.0-preview.4 → 0.72.0-preview.6

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 (47) hide show
  1. package/CHANGELOG.json +49 -1
  2. package/CHANGELOG.md +23 -4
  3. package/Libraries/Components/Button/ButtonWin32.js.map +1 -1
  4. package/Libraries/Components/Text/TextWin32.Props.d.ts +1 -1
  5. package/Libraries/Components/Text/TextWin32.Props.js.map +1 -1
  6. package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +0 -1
  7. package/Libraries/Components/TextInput/TextInput.d.ts +121 -86
  8. package/Libraries/Components/TextInput/TextInput.flow.js +121 -135
  9. package/Libraries/Components/TextInput/TextInput.js +126 -155
  10. package/Libraries/Components/TextInput/TextInput.win32.js +121 -135
  11. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
  12. package/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts +5 -0
  13. package/Libraries/Components/Touchable/TouchableWin32.Props.d.ts +1 -1
  14. package/Libraries/Components/Touchable/TouchableWin32.Props.js.map +1 -1
  15. package/Libraries/Components/Touchable/TouchableWin32.js.map +1 -1
  16. package/Libraries/Components/View/ViewAccessibility.d.ts +158 -4
  17. package/Libraries/Components/View/ViewPropTypes.d.ts +146 -6
  18. package/Libraries/Components/View/ViewWin32.d.ts +1 -1
  19. package/Libraries/Core/ReactNativeVersion.js +1 -1
  20. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +0 -2
  21. package/Libraries/StyleSheet/StyleSheetTypes.d.ts +1 -13
  22. package/Libraries/Text/TextNativeComponent.win32.js +31 -5
  23. package/Libraries/platform-types.d.ts +5 -5
  24. package/overrides.json +5 -13
  25. package/package.json +16 -16
  26. package/src/Libraries/Components/Button/ButtonWin32.tsx +1 -1
  27. package/src/Libraries/Components/Text/TextWin32.Props.ts +1 -1
  28. package/src/Libraries/Components/Touchable/Tests/TouchableWin32Test.tsx +1 -1
  29. package/src/Libraries/Components/Touchable/TouchableWin32.Props.tsx +1 -1
  30. package/src/Libraries/Components/Touchable/TouchableWin32.tsx +1 -1
  31. package/{Libraries/Components/View/ViewPropTypes.win32.d.ts → src/Libraries/Components/View/ViewPropTypes.d.ts} +14 -1
  32. package/src/Libraries/Components/View/ViewWin32.d.ts +1 -1
  33. package/src/Libraries/platform-types.d.ts +5 -5
  34. package/types/experimental.d.ts +101 -0
  35. package/Libraries/Components/Text/Tests/TextWin32Test.d.ts +0 -8
  36. package/Libraries/Components/Text/Tests/TextWin32Test.js +0 -120
  37. package/Libraries/Components/Text/Tests/TextWin32Test.js.map +0 -1
  38. package/Libraries/Components/View/Tests/ViewWin32Test.d.ts +0 -8
  39. package/Libraries/Components/View/Tests/ViewWin32Test.js +0 -233
  40. package/Libraries/Components/View/Tests/ViewWin32Test.js.map +0 -1
  41. package/src/Libraries/Components/Text/Tests/TextWin32Test.tsx +0 -164
  42. package/src/Libraries/Components/Touchable/TouchableNativeFeedback.win32.d.ts +0 -119
  43. package/src/Libraries/Components/View/Tests/ViewWin32Test.tsx +0 -333
  44. package/src/Libraries/Components/View/ViewAccessibility.win32.d.ts +0 -527
  45. package/src/Libraries/Components/View/ViewPropTypes.win32.d.ts +0 -372
  46. /package/{Libraries/Components/Touchable/TouchableNativeFeedback.win32.d.ts → src/Libraries/Components/Touchable/TouchableNativeFeedback.d.ts} +0 -0
  47. /package/{Libraries/Components/View/ViewAccessibility.win32.d.ts → src/Libraries/Components/View/ViewAccessibility.d.ts} +0 -0
package/CHANGELOG.json CHANGED
@@ -2,7 +2,55 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 22 May 2023 15:15:47 GMT",
5
+ "date": "Fri, 23 Jun 2023 01:59:31 GMT",
6
+ "tag": "@office-iss/react-native-win32_v0.72.0-preview.6",
7
+ "version": "0.72.0-preview.6",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "jthysell@microsoft.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "e3c569687bfc41afe75bc3d1e27a6798acf35d2a",
14
+ "comment": "Integrate RN 0.72.0"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 12 Jun 2023 15:15:26 GMT",
21
+ "tag": "@office-iss/react-native-win32_v0.72.0-preview.5",
22
+ "version": "0.72.0-preview.5",
23
+ "comments": {
24
+ "prerelease": [
25
+ {
26
+ "author": "30809111+acoates-ms@users.noreply.github.com",
27
+ "package": "@office-iss/react-native-win32",
28
+ "commit": "125bf2395bc1dbef5f2ecc4a7fea61c09fc9c190",
29
+ "comment": "Export ITouchableWin32State"
30
+ },
31
+ {
32
+ "author": "30809111+acoates-ms@users.noreply.github.com",
33
+ "package": "@office-iss/react-native-win32",
34
+ "commit": "88732b0213ae48680de8ee55974b1b7ba9633116",
35
+ "comment": "Fix various text properties not being forwarded to native"
36
+ },
37
+ {
38
+ "author": "30809111+acoates-ms@users.noreply.github.com",
39
+ "package": "@office-iss/react-native-win32",
40
+ "commit": "aff0d025f28f09fd0fc9d4a2d05cb32c21d82bb8",
41
+ "comment": "Type definition files shouldnt use win32 extension"
42
+ },
43
+ {
44
+ "author": "30809111+acoates-ms@users.noreply.github.com",
45
+ "package": "@office-iss/react-native-win32",
46
+ "commit": "d3b6a8912b0c43a7534d26b56777083672444159",
47
+ "comment": "Add eventPhase to IHandledKeyboardEvent"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ {
53
+ "date": "Mon, 22 May 2023 15:16:17 GMT",
6
54
  "tag": "@office-iss/react-native-win32_v0.72.0-preview.4",
7
55
  "version": "0.72.0-preview.4",
8
56
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,17 +1,36 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Mon, 22 May 2023 15:15:47 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 23 Jun 2023 01:59:31 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.72.0-preview.4
7
+ ## 0.72.0-preview.6
8
8
 
9
- Mon, 22 May 2023 15:15:47 GMT
9
+ Fri, 23 Jun 2023 01:59:31 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - Merge rc3: (34109996+chiaramooney@users.noreply.github.com)
13
+ - Integrate RN 0.72.0 (jthysell@microsoft.com)
14
14
 
15
+ ## 0.72.0-preview.5
16
+
17
+ Mon, 12 Jun 2023 15:15:26 GMT
18
+
19
+ ### Changes
20
+
21
+ - Export ITouchableWin32State (30809111+acoates-ms@users.noreply.github.com)
22
+ - Fix various text properties not being forwarded to native (30809111+acoates-ms@users.noreply.github.com)
23
+ - Type definition files shouldnt use win32 extension (30809111+acoates-ms@users.noreply.github.com)
24
+ - Add eventPhase to IHandledKeyboardEvent (30809111+acoates-ms@users.noreply.github.com)
25
+
26
+ ## 0.72.0-preview.4
27
+
28
+ Mon, 22 May 2023 15:16:17 GMT
29
+
30
+ ### Changes
31
+
32
+ - Merge rc3: (34109996+chiaramooney@users.noreply.github.com)
33
+
15
34
  ## 0.72.0-preview.3
16
35
 
17
36
  Mon, 15 May 2023 15:18:30 GMT
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonWin32.js","sourceRoot":"","sources":["../../../src/Libraries/Components/Button/ButtonWin32.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AACzB,mCAAoC;AAKpC,IAAW,WAGV;AAHD,WAAW,WAAW;IACpB,2DAAW,CAAA;IACX,qDAAQ,CAAA;AACV,CAAC,EAHU,WAAW,KAAX,WAAW,QAGrB;AAMD;;GAEG;AACH,MAAa,WAAY,SAAQ,eAAK,CAAC,SAA+C;IACpF,YAAY,KAAwB;QAClC,KAAK,CAAC,KAAK,CAAC,CAAC;QAqCE,eAAU,GAAG,CAAC,MAAmB,EAAqB,EAAE;YACvE,OAAO;gBACL,kBAAkB,EAAE;oBAClB,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,Q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,IAAI,CAAC,KAAK,CAAC,kBAAkB,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK;YACrE,iBAAiB,EAAE,QAAQ;YAC3B,kBAAkB,EAAE,IAAI,CAAC,KAAK,CAAC,kBAAkB;YACjD,SAAS,EAAE,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,QAAQ;YACtB,MAAM,EAAE,IAAI,CAAC,OAAO;YACpB,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY;YACrC,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY;YACrC,aAAa;YACb,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,YAAY;YACrC,UAAU,EAAE,IAAI,CAAC,WAAW;YAC5B,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;YACzB,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAmC;SACtD,CAAC;QAEF,MAAM,SAAS,GAAoB;YACjC,SAAS,EAAE,MAAM;SAClB,CAAC;QACF,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;YACpB,SAAS,CAAC,KAAK,GAAG,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;SAC/C;QAED,OAAO;QACL,aAAa;QACb,8BAAC,EAAE,CAAC,SAAS,OAAK,SAAS;YACzB,8BAAC,EAAE,CAAC,SAAS,OAAK,SAAS,IAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAgB,CACjD,CAChB,CAAC;IACJ,CAAC;CAwCF;AA7ED,kCA6EC","sourcesContent":["import React from 'react'\nimport RN = require('react-native');\nimport type { IViewWin32Props } from '../View/ViewPropTypes.win32';\nimport type { ITextWin32Props } from '../Text/TextWin32.Props';\nimport type { IButtonWin32Props } from './ButtonWin32.Props';\n\nconst enum SelectState {\n NotSelected,\n Selected\n}\n\ninterface IButtonWin32State {\n accessibilityState: RN.AccessibilityState;\n}\n\n/**\n * React-native <Button> control with additional Win32-specific functionality.\n */\nexport class ButtonWin32 extends React.Component<IButtonWin32Props, IButtonWin32State> {\n constructor(props: IButtonWin32Props) {\n super(props);\n this.state = this._makeState(SelectState.NotSelected);\n }\n\n public render() {\n const viewProps: IViewWin32Props = {\n accessible: true,\n accessibilityLabel: this.props.accessibilityLabel || this.props.title,\n accessibilityRole: 'button',\n accessibilityState: this.state.accessibilityState,\n focusable: true,\n onFocus: this._onFocus,\n onBlur: this._onBlur,\n onMouseEnter: this.props.onMouseEnter,\n onMouseLeave: this.props.onMouseLeave,\n // @ts-ignore\n onTouchStart: this.props.onTouchStart,\n onTouchEnd: this._onTouchEnd,\n testID: this.props.testID,\n style: this.props.style as RN.StyleProp<RN.ViewStyle>,\n };\n\n const textProps: ITextWin32Props = {\n textStyle: 'None',\n };\n if (this.props.color) {\n textProps.style = { color: this.props.color };\n }\n\n return (\n // @ts-ignore\n <RN.ViewWin32 {...viewProps}>\n <RN.TextWin32 {...textProps}>{this.props.title}</RN.TextWin32>\n </RN.ViewWin32>\n );\n }\n\n private readonly _makeState = (select: SelectState): IButtonWin32State => {\n return {\n accessibilityState: {\n disabled: this.props.disabled,\n selected: select === SelectState.Selected,\n },\n };\n };\n\n private readonly _setState = (select: SelectState): void => {\n const state = this._makeState(select);\n this.setState(state);\n };\n\n private readonly _onFocus = (): void => {\n this._setState(SelectState.Selected);\n if (this.props.onFocus) {\n this.props.onFocus();\n }\n };\n\n private readonly _onBlur = (): void => {\n this._setState(SelectState.NotSelected);\n if (this.props.onBlur) {\n this.props.onBlur();\n }\n };\n\n private readonly _onTouchEnd = (event: RN.GestureResponderEvent): void => {\n if (!this.props.disabled) {\n if (this.props.onPress) {\n this.props.onPress(event);\n }\n }\n if (this.props.onTouchEnd) {\n this.props.onTouchEnd(event);\n }\n };\n}\n"]}
1
+ {"version":3,"file":"ButtonWin32.js","sourceRoot":"","sources":["../../../src/Libraries/Components/Button/ButtonWin32.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AACzB,mCAAoC;AAKpC,IAAW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C,KAAK,CAAgB,CACjD,CAChB,CAAC;IACJ,CAAC;CAwCF;AA7ED,kCA6EC","sourcesContent":["import React from 'react'\nimport RN = require('react-native');\nimport type { IViewWin32Props } from '../View/ViewPropTypes';\nimport type { ITextWin32Props } from '../Text/TextWin32.Props';\nimport type { IButtonWin32Props } from './ButtonWin32.Props';\n\nconst enum SelectState {\n NotSelected,\n Selected\n}\n\ninterface IButtonWin32State {\n accessibilityState: RN.AccessibilityState;\n}\n\n/**\n * React-native <Button> control with additional Win32-specific functionality.\n */\nexport class ButtonWin32 extends React.Component<IButtonWin32Props, IButtonWin32State> {\n constructor(props: IButtonWin32Props) {\n super(props);\n this.state = this._makeState(SelectState.NotSelected);\n }\n\n public render() {\n const viewProps: IViewWin32Props = {\n accessible: true,\n accessibilityLabel: this.props.accessibilityLabel || this.props.title,\n accessibilityRole: 'button',\n accessibilityState: this.state.accessibilityState,\n focusable: true,\n onFocus: this._onFocus,\n onBlur: this._onBlur,\n onMouseEnter: this.props.onMouseEnter,\n onMouseLeave: this.props.onMouseLeave,\n // @ts-ignore\n onTouchStart: this.props.onTouchStart,\n onTouchEnd: this._onTouchEnd,\n testID: this.props.testID,\n style: this.props.style as RN.StyleProp<RN.ViewStyle>,\n };\n\n const textProps: ITextWin32Props = {\n textStyle: 'None',\n };\n if (this.props.color) {\n textProps.style = { color: this.props.color };\n }\n\n return (\n // @ts-ignore\n <RN.ViewWin32 {...viewProps}>\n <RN.TextWin32 {...textProps}>{this.props.title}</RN.TextWin32>\n </RN.ViewWin32>\n );\n }\n\n private readonly _makeState = (select: SelectState): IButtonWin32State => {\n return {\n accessibilityState: {\n disabled: this.props.disabled,\n selected: select === SelectState.Selected,\n },\n };\n };\n\n private readonly _setState = (select: SelectState): void => {\n const state = this._makeState(select);\n this.setState(state);\n };\n\n private readonly _onFocus = (): void => {\n this._setState(SelectState.Selected);\n if (this.props.onFocus) {\n this.props.onFocus();\n }\n };\n\n private readonly _onBlur = (): void => {\n this._setState(SelectState.NotSelected);\n if (this.props.onBlur) {\n this.props.onBlur();\n }\n };\n\n private readonly _onTouchEnd = (event: RN.GestureResponderEvent): void => {\n if (!this.props.disabled) {\n if (this.props.onPress) {\n this.props.onPress(event);\n }\n }\n if (this.props.onTouchEnd) {\n this.props.onTouchEnd(event);\n }\n };\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import RN = require('react-native');
2
- import type { IKeyboardEvent, IHandledKeyboardEvent } from '../View/ViewPropTypes.win32';
2
+ import type { IKeyboardEvent, IHandledKeyboardEvent } from '../View/ViewPropTypes';
3
3
  /**
4
4
  * Role-based text style names.
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TextWin32.Props.js","sourceRoot":"","sources":["../../../src/Libraries/Components/Text/TextWin32.Props.ts"],"names":[],"mappings":"","sourcesContent":["import RN = require('react-native');\nimport type { IKeyboardEvent, IHandledKeyboardEvent } from '../View/ViewPropTypes.win32';\n\n/**\n * Role-based text style names.\n */\nexport type TextWin32TextStyle =\n | 'None'\n | 'SmallStandard'\n | 'SmallSecondary'\n | 'MediumStandard'\n | 'MediumSecondary'\n | 'MediumApp'\n | 'MediumBold'\n | 'MediumBoldApp'\n | 'LargeStandard'\n | 'LargePlusStandard'\n | 'ExtraLargeStandard'\n | 'HugeStandard';\n\nexport interface ITextWin32Props extends RN.TextProps {\n onKeyDown?: (args: IKeyboardEvent) => void;\n onKeyDownCapture?: (args: IKeyboardEvent) => void;\n onKeyUp?: (args: IKeyboardEvent) => void;\n onKeyUpCapture?: (args: IKeyboardEvent) => void;\n\n keyDownEvents?: IHandledKeyboardEvent[];\n keyUpEvents?: IHandledKeyboardEvent[];\n\n /** Enables a focusable label with copyability but without character selectability (property:selectable) */\n focusable?: boolean;\n\n /**\n * The onBlur event occurs when an element loses focus. The opposite of onBlur is onFocus. Note that in React\n * Native, unlike in the web, the onBlur event bubbles (similar to onFocusOut in the web).\n *\n * `ev.target === ev.currentTarget` when the focus is being lost from this component.\n * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.\n */\n onBlur?: (ev: RN.NativeSyntheticEvent<{}>) => void;\n /**\n * The onBlur event occurs when an element loses focus. The opposite of onBlur is onFocus. Note that in React\n * Native, unlike in the web, the onBlur event bubbles (similar to onFocusOut in the web).\n *\n * `ev.target === ev.currentTarget` when the focus is being lost from this component.\n * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.\n */\n onBlurCapture?: (ev: RN.NativeSyntheticEvent<{}>) => void;\n /**\n * The onFocus event occurs when an element gets focus. The opposite of onFocus is onBlur. Note that in React\n * Native, unlike in the web, the onFocus event bubbles (similar to onFocusIn in the web).\n *\n * `ev.target === ev.currentTarget` when the focus is being lost from this component.\n * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.\n */\n onFocus?: (ev: RN.NativeSyntheticEvent<{}>) => void;\n /**\n * The onFocus event occurs when an element gets focus. The opposite of onFocus is onBlur. Note that in React\n * Native, unlike in the web, the onFocus event bubbles (similar to onFocusIn in the web).\n *\n * `ev.target === ev.currentTarget` when the focus is being lost from this component.\n * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.\n */\n onFocusCapture?: (ev: RN.NativeSyntheticEvent<{}>) => void;\n \n /**\n * Role-based styling of the text control. The styles applied include\n * font face, size, weight and color. These styles take precedence over\n * the `style` property.\n *\n * @remarks\n * The default value is `MediumStandard`.\n *\n * When set to `None`, role-based styling is disabled.\n *\n * @deprecated Use `style` instead.\n */\n textStyle?: TextWin32TextStyle;\n\n /** Tooltip displayed on mouse hover of this element */\n tooltip?: string;\n}\n"]}
1
+ {"version":3,"file":"TextWin32.Props.js","sourceRoot":"","sources":["../../../src/Libraries/Components/Text/TextWin32.Props.ts"],"names":[],"mappings":"","sourcesContent":["import RN = require('react-native');\nimport type { IKeyboardEvent, IHandledKeyboardEvent } from '../View/ViewPropTypes';\n\n/**\n * Role-based text style names.\n */\nexport type TextWin32TextStyle =\n | 'None'\n | 'SmallStandard'\n | 'SmallSecondary'\n | 'MediumStandard'\n | 'MediumSecondary'\n | 'MediumApp'\n | 'MediumBold'\n | 'MediumBoldApp'\n | 'LargeStandard'\n | 'LargePlusStandard'\n | 'ExtraLargeStandard'\n | 'HugeStandard';\n\nexport interface ITextWin32Props extends RN.TextProps {\n onKeyDown?: (args: IKeyboardEvent) => void;\n onKeyDownCapture?: (args: IKeyboardEvent) => void;\n onKeyUp?: (args: IKeyboardEvent) => void;\n onKeyUpCapture?: (args: IKeyboardEvent) => void;\n\n keyDownEvents?: IHandledKeyboardEvent[];\n keyUpEvents?: IHandledKeyboardEvent[];\n\n /** Enables a focusable label with copyability but without character selectability (property:selectable) */\n focusable?: boolean;\n\n /**\n * The onBlur event occurs when an element loses focus. The opposite of onBlur is onFocus. Note that in React\n * Native, unlike in the web, the onBlur event bubbles (similar to onFocusOut in the web).\n *\n * `ev.target === ev.currentTarget` when the focus is being lost from this component.\n * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.\n */\n onBlur?: (ev: RN.NativeSyntheticEvent<{}>) => void;\n /**\n * The onBlur event occurs when an element loses focus. The opposite of onBlur is onFocus. Note that in React\n * Native, unlike in the web, the onBlur event bubbles (similar to onFocusOut in the web).\n *\n * `ev.target === ev.currentTarget` when the focus is being lost from this component.\n * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.\n */\n onBlurCapture?: (ev: RN.NativeSyntheticEvent<{}>) => void;\n /**\n * The onFocus event occurs when an element gets focus. The opposite of onFocus is onBlur. Note that in React\n * Native, unlike in the web, the onFocus event bubbles (similar to onFocusIn in the web).\n *\n * `ev.target === ev.currentTarget` when the focus is being lost from this component.\n * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.\n */\n onFocus?: (ev: RN.NativeSyntheticEvent<{}>) => void;\n /**\n * The onFocus event occurs when an element gets focus. The opposite of onFocus is onBlur. Note that in React\n * Native, unlike in the web, the onFocus event bubbles (similar to onFocusIn in the web).\n *\n * `ev.target === ev.currentTarget` when the focus is being lost from this component.\n * `ev.target !== ev.currentTarget` when the focus is being lost from a descendant.\n */\n onFocusCapture?: (ev: RN.NativeSyntheticEvent<{}>) => void;\n \n /**\n * Role-based styling of the text control. The styles applied include\n * font face, size, weight and color. These styles take precedence over\n * the `style` property.\n *\n * @remarks\n * The default value is `MediumStandard`.\n *\n * When set to `None`, role-based styling is disabled.\n *\n * @deprecated Use `style` instead.\n */\n textStyle?: TextWin32TextStyle;\n\n /** Tooltip displayed on mouse hover of this element */\n tooltip?: string;\n}\n"]}
@@ -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
  */