mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 01:40:08 +00:00
RN: Stop Deep Linking ReactElement
Reviewed By: sebmarkbage Differential Revision: D4025461 fbshipit-source-id: bdb35bd8948bf96e791e2c0d567ad6bd42806188
This commit is contained in:
parent
7263c349c7
commit
edecbcddcc
@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user