mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-17 23:04:40 +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
@@ -10,16 +10,16 @@
|
||||
'use strict';
|
||||
|
||||
const ColorPropType = require('ColorPropType');
|
||||
const DeprecatedViewPropTypes = require('DeprecatedViewPropTypes');
|
||||
const NativeMethodsMixin = require('NativeMethodsMixin');
|
||||
const Platform = require('Platform');
|
||||
const React = require('React');
|
||||
const PropTypes = require('prop-types');
|
||||
const React = require('React');
|
||||
const ReactNative = require('ReactNative');
|
||||
const StatusBar = require('StatusBar');
|
||||
const StyleSheet = require('StyleSheet');
|
||||
const UIManager = require('UIManager');
|
||||
const View = require('View');
|
||||
const ViewPropTypes = require('ViewPropTypes');
|
||||
|
||||
const DrawerConsts = UIManager.AndroidDrawerLayout.Constants;
|
||||
|
||||
@@ -70,7 +70,7 @@ const DrawerLayoutAndroid = createReactClass({
|
||||
},
|
||||
|
||||
propTypes: {
|
||||
...ViewPropTypes,
|
||||
...DeprecatedViewPropTypes,
|
||||
/**
|
||||
* Determines whether the keyboard gets dismissed in response to a drag.
|
||||
* - 'none' (the default), drags do not dismiss the keyboard.
|
||||
|
||||
Reference in New Issue
Block a user