Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/components/TouchableRipple/TouchableRipple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ export type Props = PressableProps & {
* export default MyComponent;
* ```
*
* ### Accessibility
* Note that, while `onPress` is not a required prop, not passing an `onPress` prop directly to `TouchableRipple` (e.g., passing it to a component it wraps instead) will likely break the accessibility of the component.
* When `onPress` is not present, the component will read as a "dimmed", inactive button to screen readers, and will not be reachable at all to voice control users.
*
* @extends Pressable props https://reactnative.dev/docs/Pressable#props
*/
const TouchableRipple = (
Expand Down