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:
Eli White
2018-08-22 18:22:00 -07:00
committed by Facebook Github Bot
parent 3aea678c38
commit b620ccab49
27 changed files with 491 additions and 479 deletions

View File

@@ -8,11 +8,12 @@
* @flow
*/
const DeprecatedViewPropTypes = require('DeprecatedViewPropTypes');
const PropTypes = require('prop-types');
const React = require('React');
const StyleSheet = require('StyleSheet');
const View = require('View');
const ViewPropTypes = require('ViewPropTypes');
const requireNativeComponent = require('requireNativeComponent');
import type {ViewProps} from 'ViewPropTypes';
@@ -68,7 +69,7 @@ type Props = {
*/
class MaskedViewIOS extends React.Component<Props> {
static propTypes = {
...ViewPropTypes,
...DeprecatedViewPropTypes,
maskElement: PropTypes.element.isRequired,
};