mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-24 04:25:27 +08:00
Add support for 'accessible' prop
This commit is contained in:
@@ -7,7 +7,11 @@ and child content.
|
||||
|
||||
**accessibilityLabel** string
|
||||
|
||||
The text that's read by the screen reader when the user interacts with the image.
|
||||
The text that's read by a screenreader when someone interacts with the image.
|
||||
|
||||
**accessible** bool
|
||||
|
||||
When `false`, the view is hidden from screenreaders. Default: `true`.
|
||||
|
||||
**children** any
|
||||
|
||||
|
||||
@@ -6,6 +6,15 @@ the wrapped view can be decreased.
|
||||
|
||||
## Props
|
||||
|
||||
**accessibilityLabel** string
|
||||
|
||||
Overrides the text that's read by the screen reader when the user interacts
|
||||
with the element.
|
||||
|
||||
**accessible** bool
|
||||
|
||||
When `false`, the view is hidden from screenreaders. Default: `true`.
|
||||
|
||||
**activeHighlight** string
|
||||
|
||||
Sets the color of the background highlight when `onPressIn` is called. The
|
||||
|
||||
@@ -11,16 +11,22 @@ NOTE: `View` will transfer all other props to the rendered HTML element.
|
||||
**accessibilityLabel** string
|
||||
|
||||
Overrides the text that's read by the screen reader when the user interacts
|
||||
with the element. This is implemented using `aria-label`.
|
||||
with the element. (This is implemented using `aria-label`.)
|
||||
|
||||
**accessible** bool
|
||||
|
||||
When `false`, the view is hidden from screenreaders. Default: `true`. (This is
|
||||
implemented using `aria-hidden`.)
|
||||
|
||||
**component** function, string
|
||||
|
||||
Default is `div`.
|
||||
Default: `div`.
|
||||
|
||||
**pointerEvents** oneOf('auto', 'box-only', 'box-none', 'none')
|
||||
|
||||
We deviate from the CSS spec by supporting additional `pointerEvents` modes,
|
||||
therefore `pointerEvents` is excluded from `style`.
|
||||
Configure the `pointerEvents` of the view. The enhanced `pointerEvents` modes
|
||||
provided are not part of the CSS spec, therefore, `pointerEvents` is excluded
|
||||
from `style`.
|
||||
|
||||
`box-none` is the equivalent of:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user