From edecbcddccc87805cb6cbae1b9b754390c2c8b83 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Fri, 14 Oct 2016 18:50:18 -0700 Subject: [PATCH] RN: Stop Deep Linking `ReactElement` Reviewed By: sebmarkbage Differential Revision: D4025461 fbshipit-source-id: bdb35bd8948bf96e791e2c0d567ad6bd42806188 --- Libraries/Components/ViewPager/ViewPagerAndroid.android.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/Components/ViewPager/ViewPagerAndroid.android.js b/Libraries/Components/ViewPager/ViewPagerAndroid.android.js index 8afcb3926..7345901cf 100644 --- a/Libraries/Components/ViewPager/ViewPagerAndroid.android.js +++ b/Libraries/Components/ViewPager/ViewPagerAndroid.android.js @@ -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 . Was ' + child.type.displayName); } - return ReactElement.createElement(child.type, newProps); + return React.createElement(child.type, newProps); }); };