Skip to content

Commit

Permalink
Add id prop to Text, TouchableWithoutFeedback and View docs (facebook…
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel authored Sep 21, 2022
1 parent 91ce6bc commit 8754483
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` prop.

| Type |
| ------ |
| string |

---

### `maxFontSizeMultiplier`

Specifies the largest possible scale a font can reach when `allowFontScaling` is enabled. Possible values:
Expand Down
10 changes: 10 additions & 0 deletions docs/touchablewithoutfeedback.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` prop.

| Type |
| ------ |
| string |

---

### `onBlur`

Invoked when the item loses focus.
Expand Down
12 changes: 12 additions & 0 deletions docs/view.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,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` prop.

> This disables the 'layout-only view removal' optimization for this view!
| Type |
| ------ |
| string |

---

### `importantForAccessibility` <div class="label android">Android</div>

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.
Expand Down

0 comments on commit 8754483

Please sign in to comment.