mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-05-06 08:32:44 +08:00
24 lines
681 B
JavaScript
24 lines
681 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Nicolas Gallagher.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow
|
|
*/
|
|
|
|
import { array, bool, number, object, oneOf, oneOfType, string } from 'prop-types';
|
|
|
|
const BaseComponentPropTypes = {
|
|
accessibilityLabel: string,
|
|
accessibilityLiveRegion: oneOf(['assertive', 'none', 'polite']),
|
|
accessibilityRole: string,
|
|
accessible: bool,
|
|
importantForAccessibility: oneOf(['auto', 'no', 'no-hide-descendants', 'yes']),
|
|
style: oneOfType([array, number, object]),
|
|
testID: string
|
|
};
|
|
|
|
export default BaseComponentPropTypes;
|