RN: Stop Deep Linking ReactElement

Reviewed By: sebmarkbage

Differential Revision: D4025461

fbshipit-source-id: bdb35bd8948bf96e791e2c0d567ad6bd42806188
This commit is contained in:
Tim Yung 2016-10-14 18:50:18 -07:00 committed by Facebook Github Bot
parent 7263c349c7
commit edecbcddcc

View File

@ -13,7 +13,6 @@
var React = require('React');
var ReactNative = require('ReactNative');
var ReactElement = require('react/lib/ReactElement');
var UIManager = require('UIManager');
var View = require('View');
@ -178,7 +177,7 @@ class ViewPagerAndroid extends React.Component {
(child.type.displayName !== 'View')) {
console.warn('Each ViewPager child must be a <View>. Was ' + child.type.displayName);
}
return ReactElement.createElement(child.type, newProps);
return React.createElement(child.type, newProps);
});
};