mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-24 13:48:49 +08:00
Deprecate View prop-type definitions
Summary: This diff moves the prop-type definitions for View out into it's own file. We will be able to do this with a bunch of the prop-type definitions and then move them out into a deprecated npm package. Reviewed By: yungsters Differential Revision: D9444394 fbshipit-source-id: 4fd0a78533211b598ba2da4eb5015ffcc20bb675
This commit is contained in:
committed by
Facebook Github Bot
parent
3aea678c38
commit
b620ccab49
@@ -11,11 +11,11 @@
|
||||
'use strict';
|
||||
|
||||
const ColorPropType = require('ColorPropType');
|
||||
const DeprecatedViewPropTypes = require('DeprecatedViewPropTypes');
|
||||
const React = require('React');
|
||||
const ReactPropTypes = require('prop-types');
|
||||
const StyleSheet = require('StyleSheet');
|
||||
const StyleSheetPropType = require('StyleSheetPropType');
|
||||
const ViewPropTypes = require('ViewPropTypes');
|
||||
const ViewStylePropTypes = require('ViewStylePropTypes');
|
||||
|
||||
const processColor = require('processColor');
|
||||
@@ -52,7 +52,7 @@ class PickerAndroid extends React.Component<
|
||||
/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was found
|
||||
* when making Flow check .android.js files. */
|
||||
static propTypes = {
|
||||
...ViewPropTypes,
|
||||
...DeprecatedViewPropTypes,
|
||||
style: pickerStyleType,
|
||||
selectedValue: ReactPropTypes.any,
|
||||
enabled: ReactPropTypes.bool,
|
||||
|
||||
Reference in New Issue
Block a user