Releases: Purii/react-native-tableview-simple
Releases · Purii/react-native-tableview-simple
4.4.1
4.3.1
⏩ Moved to CHANGELOG.md
4.3.0
⏩ Moved to CHANGELOG.md
4.2.1
⏩ Moved to CHANGELOG.md
4.2.0
⏩ Moved to CHANGELOG.md
4.1.0
3.2.0
0.16.13
0.16.11
New features
- Separated
Separator
component, to support rendering throughFlatList
. AffectsSection
- a0c68c9.
import React from 'react';
import { FlatList } from 'react-native';
import { Cell, Separator, TableView } from 'react-native-tableview-simple';
const data = [
{ id: 1, title: '1' },
{ id: 2, title: '2' },
{ id: 3, title: '3' },
{ id: 4, title: '4' },
];
export default (ExampleWithFlatList = () =>
<FlatList
extraData={this.state}
data={data}
keyExtractor={(item, index) => item.id}
renderItem={({ item, separators }) =>
<Cell
title={item.title}
onPress={console.log}
onHighlightRow={separators.highlight}
onUnHighlightRow={separators.unhighlight}
/>}
ItemSeparatorComponent={({ highlighted }) =>
<Separator isHidden={highlighted} />}
/>);