From eca99307c956280faf1a2cc4dd65b0e9386ac69b Mon Sep 17 00:00:00 2001 From: Gabriel Donadel Dall'Agnol Date: Mon, 29 Aug 2022 19:25:01 -0300 Subject: [PATCH 1/2] feat: Add id prop to Text, TouchableWithoutFeedback and View docs --- docs/text.md | 10 ++++++++++ docs/touchablewithoutfeedback.md | 10 ++++++++++ docs/view.md | 12 ++++++++++++ 3 files changed, 32 insertions(+) diff --git a/docs/text.md b/docs/text.md index df60308a436..f15c3900aa3 100644 --- a/docs/text.md +++ b/docs/text.md @@ -417,6 +417,16 @@ This can be one of the following values: --- +### `id` + +Used to locate this view from native code. Has precedence over `nativeID` + +| Type | +| ------ | +| string | + +--- + ### `maxFontSizeMultiplier` Specifies the largest possible scale a font can reach when `allowFontScaling` is enabled. Possible values: diff --git a/docs/touchablewithoutfeedback.md b/docs/touchablewithoutfeedback.md index bcfa47f331a..6ceaf703d76 100644 --- a/docs/touchablewithoutfeedback.md +++ b/docs/touchablewithoutfeedback.md @@ -269,6 +269,16 @@ This defines how far your touch can start away from the button. This is added to | ---------------------- | | [Rect](rect) or number | +### `id` + +Used to locate this view from native code. Has precedence over `nativeID` + +| Type | +| ------ | +| string | + +--- + ### `onBlur` Invoked when the item loses focus. diff --git a/docs/view.md b/docs/view.md index 687058cb68f..32ebc4f406a 100644 --- a/docs/view.md +++ b/docs/view.md @@ -282,6 +282,18 @@ For example, if a touchable view has a height of 20 the touchable height can be --- +### `id` + +Used to locate this view from native classes. Has precedence over `nativeID` + +> This disables the 'layout-only view removal' optimization for this view! + +| Type | +| ------ | +| string | + +--- + ### `importantForAccessibility`
Android
Controls how view is important for accessibility which is if it fires accessibility events and if it is reported to accessibility services that query the screen. Works for Android only. From 314a5338b03d3036b83187ac4ea85e926220bcfe Mon Sep 17 00:00:00 2001 From: Gabriel Donadel Dall'Agnol Date: Wed, 21 Sep 2022 09:17:58 -0300 Subject: [PATCH 2/2] chore: Update text --- docs/text.md | 2 +- docs/touchablewithoutfeedback.md | 2 +- docs/view.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/text.md b/docs/text.md index f15c3900aa3..56d3ce99025 100644 --- a/docs/text.md +++ b/docs/text.md @@ -419,7 +419,7 @@ This can be one of the following values: ### `id` -Used to locate this view from native code. Has precedence over `nativeID` +Used to locate this view from native code. Has precedence over `nativeID` prop. | Type | | ------ | diff --git a/docs/touchablewithoutfeedback.md b/docs/touchablewithoutfeedback.md index 6ceaf703d76..09bb202708b 100644 --- a/docs/touchablewithoutfeedback.md +++ b/docs/touchablewithoutfeedback.md @@ -271,7 +271,7 @@ This defines how far your touch can start away from the button. This is added to ### `id` -Used to locate this view from native code. Has precedence over `nativeID` +Used to locate this view from native code. Has precedence over `nativeID` prop. | Type | | ------ | diff --git a/docs/view.md b/docs/view.md index 32ebc4f406a..ce19a001cf4 100644 --- a/docs/view.md +++ b/docs/view.md @@ -284,7 +284,7 @@ For example, if a touchable view has a height of 20 the touchable height can be ### `id` -Used to locate this view from native classes. Has precedence over `nativeID` +Used to locate this view from native classes. Has precedence over `nativeID` prop. > This disables the 'layout-only view removal' optimization for this view!