react-native/Libraries/StyleSheet
Janic Duplessis 1c6e837504 Add a deprecatedPropType module to show deprecation warnings
Summary:
To allow smoother API changes for users we often deprecate props and keep them around for a while before removing them. Right now it is all done manually, this adds a consistent way to show a warning when using a deprecated prop.

This also adds a deprecation warning of the website generated from the deprecatedPropType.

<img width="643" alt="screen shot 2016-01-26 at 7 43 08 pm" src="https://cloud.githubusercontent.com/assets/2677334/12600172/7af28fb0-c465-11e5-85e5-3786852bf522.png">

It also changes places where we added the warnings manually to use deprecatedPropType instead.
Closes https://github.com/facebook/react-native/pull/5566

Reviewed By: svcscm

Differential Revision: D2874629

Pulled By: nicklockwood

fb-gh-sync-id: c3c63bae7bbec26cc146029abd9aa5efbe73f795
2016-01-29 02:05:38 -08:00
..
__tests__ Make processColor more efficient 2015-10-05 10:15:34 -07:00
ColorPropType.js Added ColorPropType 2015-12-23 10:08:38 -08:00
EdgeInsetsPropType.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
LayoutPropTypes.js Remove min/max Width/Height in the docs 2016-01-27 18:26:56 -08:00
PointPropType.js [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
StyleSheet.js PixelRatio.pixel() 2016-01-15 05:15:31 -08:00
StyleSheetPropType.js Flowify Libraries/StyleSheet and Libraries/Text 2015-03-24 16:22:59 -08:00
StyleSheetRegistry.js Flowify Libraries/StyleSheet and Libraries/Text 2015-03-24 16:22:59 -08:00
StyleSheetTypes.js [Flow] Clean up react-native for Flow v0.15.0 2015-09-04 16:51:18 -08:00
StyleSheetValidation.js [ReactNative] Add overflow to the whitelisted Image props 2015-07-27 11:06:27 -08:00
TransformPropTypes.js Add a deprecatedPropType module to show deprecation warnings 2016-01-29 02:05:38 -08:00
flattenStyle.js [Flow] Clean up react-native for Flow v0.15.0 2015-09-04 16:51:18 -08:00
processColor.js Bugfix - Typos 2015-12-15 09:09:32 -08:00
processTransform.js Ensure perspective value is non-zero 2016-01-25 06:01:53 -08:00
styleDiffer.js Flowify Libraries/StyleSheet and Libraries/Text 2015-03-24 16:22:59 -08:00