react-native-tableview icon indicating copy to clipboard operation
react-native-tableview copied to clipboard

TableView doesn't rerender when filter predicate is updated

Open orhanmaden opened this issue 9 years ago • 0 comments

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>
        );
    }

orhanmaden avatar Jun 26 '16 03:06 orhanmaden