Open MrFarhan opened 1 year ago
@MrFarhan try to add prop keepResultsAfterBlur={true}, maybe you use GooglePlace input inside of Modal, or ScrollView
@MrFarhan try to add prop keepResultsAfterBlur={true}, maybe you use GooglePlace input inside of Modal, or ScrollView
Works for me! thank u
if you are using GooglePlaceAutocomplete inside ScrollView then pass prop keyboardShouldPersistTaps="handled" in ScrollView
example:
<ScrollView keyboardShouldPersistTaps="handled" >
<GooglePlacesAutocomplete />
</ScrollView>
thanks @gulsher7 also work on KeyboardAwareScrollView <KeyboardAwareScrollView keyboardShouldPersistTaps={'handled'}>
@pyryk408azlk @MrFarhan adding keepResultsAfterBlur directly in GooglePlacesAutoComplete worked for me as well
Describe the bug
On Press is Working fine on emulator and simulator but not working on Android device
Reproduction:
Implement GooglePlacesAutocomplete npm as per the documentation, test on emulator and then test on real device
Please provide a FULLY REPRODUCIBLE example.
Click to expand!
```javascript import { GooglePlacesAutocomplete } from 'react-native-google-places-autocomplete'; const GooglePlaceInput = () => { const HandleOnPress = (data, details = null) => { console.log('on press clicked'); }; return (Please remember to remove you google API key from the code you provide here
Additional context
Library Version: ^2.5.1
React Native Version: 0.71.5
[ ] iOS
[x] Android
[ ] Web