Ran codemod to replace View.propTypes with ViewPropTypes

Reviewed By: yungsters

Differential Revision: D4764838

fbshipit-source-id: 0b47a0fdd6793dab9333bb73bb93053fccc27dae
This commit is contained in:
Brian Vaughn
2017-03-24 00:22:57 -07:00
committed by Facebook Github Bot
parent f891985bd8
commit de8ce45258
31 changed files with 85 additions and 51 deletions

View File

@@ -18,6 +18,8 @@ const React = require('React');
const TimerMixin = require('react-timer-mixin');
const View = require('View');
const ViewPropTypes = require('ViewPropTypes');
const PropTypes = React.PropTypes;
import type EmitterSubscription from 'EmitterSubscription';
@@ -57,13 +59,13 @@ const KeyboardAvoidingView = React.createClass({
mixins: [TimerMixin],
propTypes: {
...View.propTypes,
...ViewPropTypes,
behavior: PropTypes.oneOf(['height', 'position', 'padding']),
/**
* The style of the content container(View) when behavior is 'position'.
*/
contentContainerStyle: View.propTypes.style,
contentContainerStyle: ViewPropTypes.style,
/**
* This is the distance between the top of the user screen and the react native view,