Commit 53ec725c authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

fix menu selection item

parent ac9f3813
...@@ -80,6 +80,7 @@ class Item extends React.Component { ...@@ -80,6 +80,7 @@ class Item extends React.Component {
<View style={{ margin: 10 }}> <View style={{ margin: 10 }}>
<TextInput <TextInput
style={styles.textInput} style={styles.textInput}
onChangeText={(notes) => this.setState({ notes })} onChangeText={(notes) => this.setState({ notes })}
textAlign='center' textAlign='center'
> >
......
...@@ -376,6 +376,7 @@ class MenuSelection extends React.Component { ...@@ -376,6 +376,7 @@ class MenuSelection extends React.Component {
<FlatList <FlatList
data={this.state.data_before_search} data={this.state.data_before_search}
renderItem={this.renderItem} renderItem={this.renderItem}
keyExtractor={item => item.id} keyExtractor={item => item.id}
ref={(ref) => { this.flatListRef = ref; }} ref={(ref) => { this.flatListRef = ref; }}
initialNumToRender={5} initialNumToRender={5}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment