mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 20:15:11 +00:00
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}
|
dataSource={this.state.dataSource}
|
||||||
renderRow={this._renderRow}
|
renderRow={this._renderRow}
|
||||||
renderScrollComponent={props => <RecyclerViewBackedScrollView {...props} />}
|
renderScrollComponent={props => <RecyclerViewBackedScrollView {...props} />}
|
||||||
|
renderSeparator={(sectionID, rowID) => <View key={`${sectionID}-${rowID}`} style={styles.separator} />}
|
||||||
/>
|
/>
|
||||||
</UIExplorerPage>
|
</UIExplorerPage>
|
||||||
);
|
);
|
||||||
@ -74,7 +75,6 @@ var ListViewSimpleExample = React.createClass({
|
|||||||
{rowData + ' - ' + LOREM_IPSUM.substr(0, rowHash % 301 + 10)}
|
{rowData + ' - ' + LOREM_IPSUM.substr(0, rowHash % 301 + 10)}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={styles.separator} />
|
|
||||||
</View>
|
</View>
|
||||||
</TouchableHighlight>
|
</TouchableHighlight>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user