Skip to content

Bug Report #941

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

Open
SharanyaSirigiri opened this issue Apr 18, 2024 · 3 comments
Open

Bug Report #941

SharanyaSirigiri opened this issue Apr 18, 2024 · 3 comments
Labels

Comments

@SharanyaSirigiri
Copy link

OnPress event not working on iOS devices.

The component is reloading many times unnecessarily and the onPress event is not working when clicked on any address. No feedback also given.

To reproduce the issue try to run GooglePlacesAutoComplete in an iOS real device.

The code I have used for GooglePlacesAutoComplete
` <ScrollView keyboardShouldPersistTaps={'handled'} >

      <GooglePlacesAutocomplete
        placeholder="Search"
        fetchDetails
        onPress={(data, details) => {
          console.log('Onpress working');
          moveToLocation(
            details?.geometry.location.lat,
            details?.geometry.location.lng,
          );
        }}
        debounce={300}
        listViewDisplayed={false}
        query={{
          key: GOOGLE_API_KEY,
          language: 'en',
        }}
        disableScroll
        onFail={error => {
          console.log('[MapScreen] ', error);
        }}
      />
    </ScrollView>`

It was working fine when initially tested.

  • Library Version: [^2.5.6]

  • React Native Version: [0.73.2]

  • [ 16.6] iOS

I am using a React Native CLI applications.

Add any other context about the problem here, screenshots etc

@KrisLau
Copy link

KrisLau commented May 20, 2024

Not sure if this helps you but you should probably downgrade to 2.5.1 if your old tests work? I had issues with 2.5.6 and I couldn't figure it out because the releases from 2.5.1 aren't shown so I can't diff the two versions

@koko-js478
Copy link

@SharanyaSirigiri @KrisLau I am facing this issue after upgrading to this library's latest version (2.5.7), have tried to downgrade to 2.5.1 but still facing an issue. When I press the item, it never triggers the onPress event and just removes search results from the list on the iOS simulator while it crashes the app on an iOS mobile phone.

react-native 0.76.1

Did you find any solution or alternative? Thank you!

@KrisLau
Copy link

KrisLau commented Mar 3, 2025

@koko-js478 Nope I just ended up downgrading and just keeping that version for now

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

3 participants