mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Ran codemod to replace View.propTypes with ViewPropTypes
Reviewed By: yungsters Differential Revision: D4764838 fbshipit-source-id: 0b47a0fdd6793dab9333bb73bb93053fccc27dae
This commit is contained in:
committed by
Facebook Github Bot
parent
f891985bd8
commit
de8ce45258
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user