<GooglePlacesAutocomplete
placeholder='Address'
minLength={2}
autoFocus={false}
returnKeyType={'default'}
fetchDetails={true}
onPress={this.props.onSelectAddress}
getDefaultValue={() => this.state.val}
query={{
key: '***somekey*****',
language: 'en',
}}
styles={{}}
/>
I've solved this using, by the way this function still need to be fix getDefaultValue to show default value even after update state of component
textInputProps={{
value: this.state.text,
onChangeText: (text) => {this.props.handleAddressOnKeyUp(text)}
}}
this might help someone else on stackoverflow issue
Most helpful comment
I've solved this using, by the way this function still need to be fix getDefaultValue to show default value even after update state of component
this might help someone else on stackoverflow issue