From 02cf01054233155f5f5c198581a873e28ce1526c Mon Sep 17 00:00:00 2001 From: Peter Abbondanzo Date: Mon, 26 May 2025 20:31:44 -0400 Subject: [PATCH 1/2] Add targetevent to sidebar --- website/sidebars.ts | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/website/sidebars.ts b/website/sidebars.ts index 88c39837eb0..f50ad594030 100644 --- a/website/sidebars.ts +++ b/website/sidebars.ts @@ -84,11 +84,7 @@ export default { 'the-new-architecture/codegen-cli', ], 'Native Development': [ - { - type: 'doc', - id: 'native-platform', - label: 'Introduction', - }, + {type: 'doc', id: 'native-platform', label: 'Introduction'}, { type: 'category', label: 'Modules', @@ -136,15 +132,8 @@ export default { collapsible: true, collapsed: true, items: [ - { - type: 'doc', - id: 'appendix', - label: 'Appendix', - }, - { - type: 'doc', - id: 'the-new-architecture/create-module-library', - }, + {type: 'doc', id: 'appendix', label: 'Appendix'}, + {type: 'doc', id: 'the-new-architecture/create-module-library'}, ], }, ], @@ -299,6 +288,7 @@ export default { 'pressevent', 'react-node', 'rect', + 'targetevent', 'viewtoken', ], }, From 38d297aa45376502683b4eb981ee3610b423955c Mon Sep 17 00:00:00 2001 From: Peter Abbondanzo Date: Tue, 27 May 2025 10:37:20 -0400 Subject: [PATCH 2/2] Add targetevent to current docs --- .../version-0.79/targetevent.md | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 website/versioned_docs/version-0.79/targetevent.md diff --git a/website/versioned_docs/version-0.79/targetevent.md b/website/versioned_docs/version-0.79/targetevent.md new file mode 100644 index 00000000000..ffa4f6aa2b8 --- /dev/null +++ b/website/versioned_docs/version-0.79/targetevent.md @@ -0,0 +1,29 @@ +--- +id: targetevent +title: TargetEvent Object Type +--- + +`TargetEvent` object is returned in the callback as a result of focus change, for example `onFocus` or `onBlur` in the [TextInput](textinput) component. + +## Example + +``` +{ + target: 1127 +} +``` + +## Keys and values + +### `target` + +The node id of the element receiving the TargetEvent. + +| Type | Optional | +| --------------------------- | -------- | +| number, `null`, `undefined` | No | + +## Used by + +- [`TextInput`](textinput) +- [`TouchableWithoutFeedback`](touchablewithoutfeedback)