You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Discussion: removal of accessibilityComponentType and accessibilityTraits properties #24016
React Native version 0.57 introduced two accessibility properties, accessibilityRole and accessibilityStates, as "replacement" for accessibilityComponentType and accessibilityTraits.
And this is what we have in the docs:
Note: Accessibility Role and Accessibility States are meant to be a cross-platform solution to replace accessibilityTraits and accessibilityComponentType, which will soon be deprecated. When possible, use accessibilityRole and accessibilityStates instead of accessibilityTraits and accessibilityComponentType. https://facebook.github.io/react-native/docs/accessibility
I wonder if it's already right moment to remove those old properties from the codebase, as part of 0.60, or if there's a plan to remove it in some specific version.
Activity
estevaolucas commentedon Mar 18, 2019
btw, I've working to add the
switchrole &on&offstate. Hopefully I'll have a PR sooncpojer commentedon Mar 19, 2019
Sounds good, please send a PR :)