mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
- remove accessibilityComponentType and accessibilityTraits props (a11y) (#24344)
Summary: Closes: https://github.com/facebook/react-native/issues/24016 React Native 0.57 introduced cross-platform `accessibilityRole` and `accessibilityStates` props in order to replace `accessibilityComponentType` (for android) and `accessibilityTraits` (for iOS). With #24095 `accessibilityRole` and `accessibilityStates` will increase, receiving more options, which seems to be a good moment to remove deprecated props. Remove deprecated `accessibilityComponentType` and `accessibilityTraits` props. [General] [Removed] - Remove accessibilityComponentType and accessibilityTraits props Pull Request resolved: https://github.com/facebook/react-native/pull/24344 Reviewed By: rickhanlonii Differential Revision: D14842214 Pulled By: cpojer fbshipit-source-id: 279945e503d8a23bfee7a49d42f5db490c5f6069
This commit is contained in:
committed by
Facebook Github Bot
parent
57c1a7add2
commit
f70e58f355
+1
-1
@@ -842,6 +842,6 @@ public class NativeViewHierarchyManager {
|
||||
if (view == null) {
|
||||
throw new JSApplicationIllegalArgumentException("Could not find view with tag " + tag);
|
||||
}
|
||||
AccessibilityHelper.sendAccessibilityEvent(view, eventType);
|
||||
view.sendAccessibilityEvent(eventType);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user