Skip to content

Commit 8754483

Browse files
Add id prop to Text, TouchableWithoutFeedback and View docs (facebook#3285)
1 parent 91ce6bc commit 8754483

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

docs/text.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,16 @@ This can be one of the following values:
417417

418418
---
419419

420+
### `id`
421+
422+
Used to locate this view from native code. Has precedence over `nativeID` prop.
423+
424+
| Type |
425+
| ------ |
426+
| string |
427+
428+
---
429+
420430
### `maxFontSizeMultiplier`
421431

422432
Specifies the largest possible scale a font can reach when `allowFontScaling` is enabled. Possible values:

docs/touchablewithoutfeedback.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,16 @@ This defines how far your touch can start away from the button. This is added to
269269
| ---------------------- |
270270
| [Rect](rect) or number |
271271

272+
### `id`
273+
274+
Used to locate this view from native code. Has precedence over `nativeID` prop.
275+
276+
| Type |
277+
| ------ |
278+
| string |
279+
280+
---
281+
272282
### `onBlur`
273283

274284
Invoked when the item loses focus.

docs/view.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,18 @@ For example, if a touchable view has a height of 20 the touchable height can be
283283

284284
---
285285

286+
### `id`
287+
288+
Used to locate this view from native classes. Has precedence over `nativeID` prop.
289+
290+
> This disables the 'layout-only view removal' optimization for this view!
291+
292+
| Type |
293+
| ------ |
294+
| string |
295+
296+
---
297+
286298
### `importantForAccessibility` <div class="label android">Android</div>
287299

288300
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.

0 commit comments

Comments
 (0)