-
-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Forward unused props in
ReanimatedSwipeable
and Pressable
to thei…
…r inner components (#3039) ## Description Currently large portion of the props accepted by `ReanimatedSwipeable` and `Pressable` components remain unused. This issue mostly refers to all the `accessibility` props. This PR adds the use of `spread` operator to `ReanimatedSwipeable` and `Pressable` to forward all the remaining props to inner components, which are not explicitly used otherwise. Fixes: #3032 ## Test plan - turn on radio description - open the nested `Pressable` example - add `accessibilityLabel` prop to one of the `Pressables` - navigate over the modified `Pressable` with your keyboard (use `Tab` and `Shift-Tab` to navigate) - hear as your label is being read out, which wouldn't occur without this change
- Loading branch information
Showing
2 changed files
with
119 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.