[Feature] Segmented Control - Fix deprecated attributes #32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ticket 6857
Updated to appease
react-native-web
package for Web Storybook:accessibilityRole
prop torole
accessibilityLabel
prop toaria-label
TouchableOpacity
component toPressable
TouchableOpacity
effect of reducing opacity to 20% on press; this was pulled out to a convenience function with the expectation we will need it again later as many components in the existing app useTouchableOpacity
Draft testing included:
Draft testing did not include:
As a general note: the new
role
andaria-label
properties were added with React Native 0.71; this change hereby renders the components library non-functional to RN applications below that version. This is considered an acceptable risk as the one and only current app leveraging the components library is on 0.71 and the expectation is that any new consumers will be on a higher version.