mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-29 04:44:52 +08:00
Docs: minor adjustments
This commit is contained in:
@@ -16,13 +16,13 @@ NOTE: `Text` will transfer all other props to the rendered HTML element.
|
|||||||
|
|
||||||
**children** any
|
**children** any
|
||||||
|
|
||||||
Child content
|
Child content.
|
||||||
|
|
||||||
**component** function, string
|
**component** function or string
|
||||||
|
|
||||||
Default is `span`.
|
Default is `span`.
|
||||||
|
|
||||||
**numberOfLines** number
|
**numberOfLines** number.
|
||||||
|
|
||||||
Truncates the text with an ellipsis after this many lines.
|
Truncates the text with an ellipsis after this many lines.
|
||||||
|
|
||||||
|
|||||||
@@ -13,11 +13,6 @@ NOTE: `View` will transfer all other props to the rendered HTML element.
|
|||||||
Defines the text available to assistive technologies upon interaction with the
|
Defines the text available to assistive technologies upon interaction with the
|
||||||
element. (This is implemented using `aria-label`.)
|
element. (This is implemented using `aria-label`.)
|
||||||
|
|
||||||
**accessible** bool
|
|
||||||
|
|
||||||
When `false`, the view is hidden from assistive technologies. Default: `true`. (This is
|
|
||||||
implemented using `aria-hidden`.)
|
|
||||||
|
|
||||||
**accessibilityLiveRegion** oneOf('assertive', 'off', 'polite')
|
**accessibilityLiveRegion** oneOf('assertive', 'off', 'polite')
|
||||||
|
|
||||||
Indicates to assistive technologies whether to notify the user when the view
|
Indicates to assistive technologies whether to notify the user when the view
|
||||||
@@ -38,7 +33,12 @@ Note: Avoid changing `accessibilityRole` values over time or after user
|
|||||||
actions. Generally, accessibility APIs do not provide a means of notifying
|
actions. Generally, accessibility APIs do not provide a means of notifying
|
||||||
assistive technologies of a `role` value change.
|
assistive technologies of a `role` value change.
|
||||||
|
|
||||||
**component** function, string
|
**accessible** bool
|
||||||
|
|
||||||
|
When `false`, the view is hidden from assistive technologies. Default: `true`. (This is
|
||||||
|
implemented using `aria-hidden`.)
|
||||||
|
|
||||||
|
**component** function or string
|
||||||
|
|
||||||
The React Component for this view. Default: `div`.
|
The React Component for this view. Default: `div`.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user