mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove deprecated accessibilityStates property. (#26168)
Summary: We added the accessibilityState property as a more semantically rich way for components to describe information about their state to accessibility services. This PR removes the old accessibilityStates property. <!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? --> ## Changelog [General] [Change] - Remove accessibilityStates property. Pull Request resolved: https://github.com/facebook/react-native/pull/26168 Test Plan: Ensure that RNTester accessibility examples function properly on both iOS and Android. Differential Revision: D17152891 Pulled By: cpojer fbshipit-source-id: d71d3cf0f2e0846979d2ba104b6c69e4e5725252
This commit is contained in:
committed by
Facebook Github Bot
parent
0165489b8f
commit
7b35f427fd
@@ -40,9 +40,6 @@ public abstract class BaseViewManagerDelegate<
|
||||
case ViewProps.ACCESSIBILITY_STATE:
|
||||
mViewManager.setViewState(view, (ReadableMap) value);
|
||||
break;
|
||||
case ViewProps.ACCESSIBILITY_STATES:
|
||||
mViewManager.setViewStates(view, (ReadableArray) value);
|
||||
break;
|
||||
case ViewProps.BACKGROUND_COLOR:
|
||||
mViewManager.setBackgroundColor(view, value == null ? 0 : ((Double) value).intValue());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user