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
This commit is contained in:
Janic Duplessis 2017-01-28 10:42:55 -08:00 committed by Facebook Github Bot
parent 9615d3bdb5
commit 850c71c2f3
3 changed files with 0 additions and 12 deletions

View File

@ -29,7 +29,6 @@ var {
ListView,
TouchableHighlight,
StyleSheet,
RecyclerViewBackedScrollView,
Text,
View,
} = ReactNative;
@ -64,7 +63,6 @@ var ListViewSimpleExample = React.createClass({
<ListView
dataSource={this.state.dataSource}
renderRow={this._renderRow}
renderScrollComponent={props => <RecyclerViewBackedScrollView {...props} />}
renderSeparator={this._renderSeparator}
/>
</UIExplorerPage>

View File

@ -29,7 +29,6 @@ var {
SwipeableListView,
TouchableHighlight,
StyleSheet,
RecyclerViewBackedScrollView,
Text,
View,
Alert,
@ -76,7 +75,6 @@ var SwipeableListViewSimpleExample = React.createClass({
</View>);
}}
renderRow={this._renderRow}
renderScrollComponent={props => <RecyclerViewBackedScrollView {...props} />}
renderSeparator={this._renderSeperator}
/>
</UIExplorerPage>

View File

@ -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<any> {
return (
<RecyclerViewBackedScrollView {...props} />
);
}
/**
* 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}