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:
parent
9615d3bdb5
commit
850c71c2f3
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue