2015-02-19 20:10:52 -08:00
|
|
|
/**
|
2018-09-11 15:27:47 -07:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2015-03-23 13:35:08 -07:00
|
|
|
*
|
2018-02-16 18:24:55 -08: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-19 20:10:52 -08:00
|
|
|
*
|
2018-05-10 19:06:46 -07:00
|
|
|
* @format
|
2015-03-25 12:55:10 -07:00
|
|
|
* @flow
|
2015-02-19 20:10:52 -08:00
|
|
|
*/
|
2018-05-10 19:06:46 -07:00
|
|
|
|
2015-02-19 20:10:52 -08:00
|
|
|
'use strict';
|
|
|
|
|
2018-09-27 17:20:13 -07:00
|
|
|
const DeprecatedColorPropType = require('DeprecatedColorPropType');
|
2018-10-01 12:13:10 -07:00
|
|
|
const DeprecatedLayoutPropTypes = require('DeprecatedLayoutPropTypes');
|
2018-03-03 15:04:46 -08:00
|
|
|
const ReactPropTypes = require('prop-types');
|
2018-09-27 19:31:28 -07:00
|
|
|
const DeprecatedShadowPropTypesIOS = require('DeprecatedShadowPropTypesIOS');
|
2018-09-27 16:12:47 -07:00
|
|
|
const DeprecatedTransformPropTypes = require('DeprecatedTransformPropTypes');
|
2015-02-19 20:10:52 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Warning: Some of these properties may not be supported in all releases.
|
|
|
|
*/
|
2018-10-01 12:13:06 -07:00
|
|
|
const DeprecatedViewStylePropTypes = {
|
2018-10-01 12:13:10 -07:00
|
|
|
...DeprecatedLayoutPropTypes,
|
2018-09-27 19:31:28 -07:00
|
|
|
...DeprecatedShadowPropTypesIOS,
|
2018-09-27 16:12:47 -07:00
|
|
|
...DeprecatedTransformPropTypes,
|
2015-07-14 17:03:41 -07:00
|
|
|
backfaceVisibility: ReactPropTypes.oneOf(['visible', 'hidden']),
|
2018-09-27 17:20:13 -07:00
|
|
|
backgroundColor: DeprecatedColorPropType,
|
|
|
|
borderColor: DeprecatedColorPropType,
|
|
|
|
borderTopColor: DeprecatedColorPropType,
|
|
|
|
borderRightColor: DeprecatedColorPropType,
|
|
|
|
borderBottomColor: DeprecatedColorPropType,
|
|
|
|
borderLeftColor: DeprecatedColorPropType,
|
|
|
|
borderStartColor: DeprecatedColorPropType,
|
|
|
|
borderEndColor: DeprecatedColorPropType,
|
2018-08-23 11:25:41 -07: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,
|
2015-07-02 19:16:29 -07:00
|
|
|
borderStyle: ReactPropTypes.oneOf(['solid', 'dotted', 'dashed']),
|
2018-08-23 11:25:41 -07:00
|
|
|
borderWidth: ReactPropTypes.number,
|
|
|
|
borderTopWidth: ReactPropTypes.number,
|
|
|
|
borderRightWidth: ReactPropTypes.number,
|
|
|
|
borderBottomWidth: ReactPropTypes.number,
|
|
|
|
borderLeftWidth: ReactPropTypes.number,
|
|
|
|
opacity: ReactPropTypes.number,
|
2015-11-25 17:03:51 -08:00
|
|
|
/**
|
2015-12-01 07:24:14 -08:00
|
|
|
* (Android-only) Sets the elevation of a view, using Android's underlying
|
2015-11-25 17:03:51 -08: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-20 16:41:31 -07:00
|
|
|
};
|
2015-02-19 20:10:52 -08:00
|
|
|
|
2018-10-01 12:13:06 -07:00
|
|
|
module.exports = DeprecatedViewStylePropTypes;
|