mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-07 13:05:18 +08:00
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
31 lines
684 B
JavaScript
31 lines
684 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @flow strict
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = {
|
|
// This must be kept in sync with the AccessibilityRolesMask in RCTViewManager.m
|
|
DeprecatedAccessibilityRoles: [
|
|
'none',
|
|
'button',
|
|
'link',
|
|
'search',
|
|
'image',
|
|
'keyboardkey',
|
|
'text',
|
|
'adjustable',
|
|
'imagebutton',
|
|
'header',
|
|
'summary',
|
|
],
|
|
// This must be kept in sync with the AccessibilityStatesMask in RCTViewManager.m
|
|
DeprecatedAccessibilityStates: ['selected', 'disabled'],
|
|
};
|