Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage with react-native-app-intro-slider #800

Open
pratikdhody opened this issue Feb 16, 2022 · 0 comments
Open

Usage with react-native-app-intro-slider #800

pratikdhody opened this issue Feb 16, 2022 · 0 comments
Labels

Comments

@pratikdhody
Copy link

Using react-native-app-intro-slider - I have a set of intro sliders to present to users.
Within the slider renderItem, I am using GooglePlacesAutoComplete.

The issue I am having is that search results are displayed but when tapped, don't console log the selected result.

I suspect this may be an issue as under the hood, react-native-app-intro-slider is I believe using a Flatlist to render the slides.

<GooglePlacesAutocomplete
     placeholder='Search'
     onPress={(data, details = null) => {
       // 'details' is provided when fetchDetails = true
       console.log(data, details);
     }}
     query={{
       key: 'YOUR API KEY',
       language: 'en',
     }}
   />

I have tried to add the following as per link this does not work and yes, when I add GooglePlacesAutocomplete outside of renderItem - the GooglePlacesAutocomplete input works as expected.

<ScrollView keyboardShouldPersistTaps={'handled'}>
     <ScrollView keyboardShouldPersistTaps={'handled'}>
            <GooglePlacesAutocomplete ... >

Any thoughts on how to get GooglePlacesAutocomplete to work would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant