Commit 68929dff authored by Trisno's avatar Trisno

Habis ketik keyword pencarian alamat, tap enter, gak langsung search (harus tap icon search)

parent 1a4c4162
...@@ -182,6 +182,10 @@ class AddreesDetail extends React.Component { ...@@ -182,6 +182,10 @@ class AddreesDetail extends React.Component {
} }
} }
_onKeyPress() {
Alert.alert('tes key press')
}
saveAddress() { saveAddress() {
this.setState({ this.setState({
...@@ -245,7 +249,8 @@ class AddreesDetail extends React.Component { ...@@ -245,7 +249,8 @@ class AddreesDetail extends React.Component {
<TextInput style={{ height: 45 }} placeholder={i18n.t('findAddress')} <TextInput style={{ height: 45 }} placeholder={i18n.t('findAddress')}
caretHidden={this.state.caretHidden} caretHidden={this.state.caretHidden}
onFocus={() => this.setState({ caretHidden: false })} onFocus={() => this.setState({ caretHidden: false })}
onChangeText={(address) => this.setState({ address })}> onChangeText={(address) => this.setState({ address })}
onSubmitEditing={() => this._searchLocation()}>
</TextInput> </TextInput>
</View> </View>
<View style={{ flex: 1, margin: 5 }}> <View style={{ flex: 1, margin: 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