2015-02-20 07:10:52 +03:00
|
|
|
/**
|
2018-09-12 01:27:47 +03:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2015-03-23 23:35:08 +03:00
|
|
|
*
|
2018-02-17 05:24:55 +03:00
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2015-02-20 07:10:52 +03:00
|
|
|
*
|
2018-05-11 05:06:46 +03:00
|
|
|
* @format
|
2015-03-25 22:55:10 +03:00
|
|
|
* @flow
|
2015-02-20 07:10:52 +03:00
|
|
|
*/
|
2018-05-11 05:06:46 +03:00
|
|
|
|
2015-02-20 07:10:52 +03:00
|
|
|
'use strict';
|
|
|
|
|
2019-05-08 18:44:25 +03:00
|
|
|
const DeprecatedColorPropType = require('./DeprecatedColorPropType');
|
|
|
|
const DeprecatedLayoutPropTypes = require('./DeprecatedLayoutPropTypes');
|
|
|
|
const DeprecatedShadowPropTypesIOS = require('./DeprecatedShadowPropTypesIOS');
|
|
|
|
const DeprecatedTransformPropTypes = require('./DeprecatedTransformPropTypes');
|
2019-08-09 20:06:53 +03:00
|
|
|
const ReactPropTypes = require('prop-types');
|
2015-02-20 07:10:52 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Warning: Some of these properties may not be supported in all releases.
|
|
|
|
*/
|
2018-10-01 22:13:06 +03:00
|
|
|
const DeprecatedViewStylePropTypes = {
|
2018-10-01 22:13:10 +03:00
|
|
|
...DeprecatedLayoutPropTypes,
|
2018-09-28 05:31:28 +03:00
|
|
|
...DeprecatedShadowPropTypesIOS,
|
2018-09-28 02:12:47 +03:00
|
|
|
...DeprecatedTransformPropTypes,
|
2019-08-09 20:06:53 +03:00
|
|
|
backfaceVisibility: (ReactPropTypes.oneOf([
|
|
|
|
'visible',
|
|
|
|
'hidden',
|
|
|
|
]): React$PropType$Primitive<'visible' | 'hidden'>),
|
2018-09-28 03:20:13 +03:00
|
|
|
backgroundColor: DeprecatedColorPropType,
|
|
|
|
borderColor: DeprecatedColorPropType,
|
|
|
|
borderTopColor: DeprecatedColorPropType,
|
|
|
|
borderRightColor: DeprecatedColorPropType,
|
|
|
|
borderBottomColor: DeprecatedColorPropType,
|
|
|
|
borderLeftColor: DeprecatedColorPropType,
|
|
|
|
borderStartColor: DeprecatedColorPropType,
|
|
|
|
borderEndColor: DeprecatedColorPropType,
|
2018-08-23 21:25:41 +03:00
|
|
|
borderRadius: ReactPropTypes.number,
|
|
|
|
borderTopLeftRadius: ReactPropTypes.number,
|
|
|
|
borderTopRightRadius: ReactPropTypes.number,
|
|
|
|
borderTopStartRadius: ReactPropTypes.number,
|
|
|
|
borderTopEndRadius: ReactPropTypes.number,
|
|
|
|
borderBottomLeftRadius: ReactPropTypes.number,
|
|
|
|
borderBottomRightRadius: ReactPropTypes.number,
|
|
|
|
borderBottomStartRadius: ReactPropTypes.number,
|
|
|
|
borderBottomEndRadius: ReactPropTypes.number,
|
2019-08-09 20:06:53 +03:00
|
|
|
borderStyle: (ReactPropTypes.oneOf([
|
|
|
|
'solid',
|
|
|
|
'dotted',
|
|
|
|
'dashed',
|
|
|
|
]): React$PropType$Primitive<'solid' | 'dotted' | 'dashed'>),
|
2018-08-23 21:25:41 +03:00
|
|
|
borderWidth: ReactPropTypes.number,
|
|
|
|
borderTopWidth: ReactPropTypes.number,
|
|
|
|
borderRightWidth: ReactPropTypes.number,
|
|
|
|
borderBottomWidth: ReactPropTypes.number,
|
|
|
|
borderLeftWidth: ReactPropTypes.number,
|
|
|
|
opacity: ReactPropTypes.number,
|
2015-11-26 04:03:51 +03:00
|
|
|
/**
|
2015-12-01 18:24:14 +03:00
|
|
|
* (Android-only) Sets the elevation of a view, using Android's underlying
|
2015-11-26 04:03:51 +03:00
|
|
|
* [elevation API](https://developer.android.com/training/material/shadows-clipping.html#Elevation).
|
|
|
|
* This adds a drop shadow to the item and affects z-order for overlapping views.
|
|
|
|
* Only supported on Android 5.0+, has no effect on earlier versions.
|
|
|
|
* @platform android
|
|
|
|
*/
|
|
|
|
elevation: ReactPropTypes.number,
|
2015-03-21 02:41:31 +03:00
|
|
|
};
|
2015-02-20 07:10:52 +03:00
|
|
|
|
2018-10-01 22:13:06 +03:00
|
|
|
module.exports = DeprecatedViewStylePropTypes;
|