Use renderSeparator in List View Example
Summary: Closes https://github.com/facebook/react-native/pull/5443 Reviewed By: svcscm Differential Revision: D2856259 Pulled By: androidtrunkagent fb-gh-sync-id: 68b4f5d16c852bbf06cd65346c32b8c6d3f2d36c
This commit is contained in:
parent
a23785ca2e
commit
969c520126
|
@ -57,6 +57,7 @@ var ListViewSimpleExample = React.createClass({
|
|||
dataSource={this.state.dataSource}
|
||||
renderRow={this._renderRow}
|
||||
renderScrollComponent={props => <RecyclerViewBackedScrollView {...props} />}
|
||||
renderSeparator={(sectionID, rowID) => <View key={`${sectionID}-${rowID}`} style={styles.separator} />}
|
||||
/>
|
||||
</UIExplorerPage>
|
||||
);
|
||||
|
@ -74,7 +75,6 @@ var ListViewSimpleExample = React.createClass({
|
|||
{rowData + ' - ' + LOREM_IPSUM.substr(0, rowHash % 301 + 10)}
|
||||
</Text>
|
||||
</View>
|
||||
<View style={styles.separator} />
|
||||
</View>
|
||||
</TouchableHighlight>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue