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

Bug Report #941

Open
SharanyaSirigiri opened this issue Apr 18, 2024 · 1 comment
Open

Bug Report #941

SharanyaSirigiri opened this issue Apr 18, 2024 · 1 comment
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

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

2 participants