react-native-tableview
react-native-tableview copied to clipboard
TableView doesn't rerender when filter predicate is updated
The TableView doesn't update when I run example 3 and filter by a property on the state,
// list spanish provinces and add 'All states' item at the beginning
render(){
var country = "ES";
return (
<TableView selectedValue="" style={{flex:1}} json="states" filter={`country=='${this.state.searchText}'`}
tableViewCellStyle={TableView.Consts.CellStyle.Subtitle}
onPress={(event) => console.log(event)}>
<Item value="">All states</Item>
</TableView>
);
}