From 850c71c2f3512b3d7211f89d06fad0ed5cc21794 Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Sat, 28 Jan 2017 10:42:55 -0800 Subject: [PATCH] Remove usages of RecyclerViewBackedScrollView in UIExplorer and NetworkOverlay Summary: RecyclerViewBackedScrollView was deprecated, this removes usages in Examples as well as in NetworkOverlay. **Test plan** Tested that RecyclerViewBackedScrollView deprecation warning doesn't show up anymore. Closes https://github.com/facebook/react-native/pull/11999 Differential Revision: D4443707 Pulled By: hramos fbshipit-source-id: 087afc9f183b3f2087965a2fe84301f422e48e9c --- Examples/UIExplorer/js/ListViewExample.js | 2 -- Examples/UIExplorer/js/SwipeableListViewExample.js | 2 -- Libraries/Inspector/NetworkOverlay.js | 8 -------- 3 files changed, 12 deletions(-) diff --git a/Examples/UIExplorer/js/ListViewExample.js b/Examples/UIExplorer/js/ListViewExample.js index 6c0e0d88c03334..ed79dcf84b3223 100644 --- a/Examples/UIExplorer/js/ListViewExample.js +++ b/Examples/UIExplorer/js/ListViewExample.js @@ -29,7 +29,6 @@ var { ListView, TouchableHighlight, StyleSheet, - RecyclerViewBackedScrollView, Text, View, } = ReactNative; @@ -64,7 +63,6 @@ var ListViewSimpleExample = React.createClass({ } renderSeparator={this._renderSeparator} /> diff --git a/Examples/UIExplorer/js/SwipeableListViewExample.js b/Examples/UIExplorer/js/SwipeableListViewExample.js index 4d37ddc9f04df6..1ebbbbc043a8f5 100644 --- a/Examples/UIExplorer/js/SwipeableListViewExample.js +++ b/Examples/UIExplorer/js/SwipeableListViewExample.js @@ -29,7 +29,6 @@ var { SwipeableListView, TouchableHighlight, StyleSheet, - RecyclerViewBackedScrollView, Text, View, Alert, @@ -76,7 +75,6 @@ var SwipeableListViewSimpleExample = React.createClass({ ); }} renderRow={this._renderRow} - renderScrollComponent={props => } renderSeparator={this._renderSeperator} /> diff --git a/Libraries/Inspector/NetworkOverlay.js b/Libraries/Inspector/NetworkOverlay.js index 8ca4a64534f340..9d47f482cdabfc 100644 --- a/Libraries/Inspector/NetworkOverlay.js +++ b/Libraries/Inspector/NetworkOverlay.js @@ -13,7 +13,6 @@ const ListView = require('ListView'); const React = require('React'); -const RecyclerViewBackedScrollView = require('RecyclerViewBackedScrollView'); const ScrollView = require('ScrollView'); const StyleSheet = require('StyleSheet'); const Text = require('Text'); @@ -367,12 +366,6 @@ class NetworkOverlay extends React.Component { this._listViewHeight = height; } - _renderScrollComponent(props: Object): React.Element { - return ( - - ); - } - /** * Popup a scrollView to dynamically show detailed information of * the request, when pressing a row in the network flow listView. @@ -500,7 +493,6 @@ class NetworkOverlay extends React.Component { ref={this._captureRequestListView} dataSource={this.state.dataSource} renderRow={this._renderRow} - renderScrollComponent={this._renderScrollComponent} enableEmptySections={true} renderSeparator={this._renderSeperator} onLayout={this._listViewOnLayout}