mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
react@16 did away with PropTypes; require prop-types instead
Summary: react@16 (a peerDependency) did away with the PropTypes export in favor of the prop-types module. This updates all of the remaining references to `React.PropTypes`. Closes https://github.com/facebook/react-native/pull/14641 Differential Revision: D5287167 Pulled By: javache fbshipit-source-id: a917e29aa0e5470260568995dfe97f5528ec265e
This commit is contained in:
committed by
Facebook Github Bot
parent
2b89416ac0
commit
8e9322c65e
@@ -13,6 +13,7 @@
|
||||
'use strict';
|
||||
|
||||
const EmitterSubscription = require('EmitterSubscription');
|
||||
const PropTypes = require('prop-types');
|
||||
const RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
|
||||
const React = require('React');
|
||||
const ReactNative = require('ReactNative');
|
||||
@@ -41,7 +42,7 @@ class AppContainer extends React.Component {
|
||||
_subscription: ?EmitterSubscription = null;
|
||||
|
||||
static childContextTypes = {
|
||||
rootTag: React.PropTypes.number,
|
||||
rootTag: PropTypes.number,
|
||||
};
|
||||
|
||||
getChildContext(): Context {
|
||||
|
||||
Reference in New Issue
Block a user