FaridSafi/react-native-google-places-autocomplete

Bug Report

Opened this issue · 0 comments

kiwavi commented

Describe the bug

Autocomplete not working when strict bounds set to true in iOS. When I remove it, it works. I'm using strict bounds for bounding the selected location.
A clear and concise description of what the bug is.

Reproduction - (required - issue will be closed without this)

"react-native-google-places-autocomplete": "^2.5.1",
"react-native": "0.71.4",

Other info

System:
OS: macOS 12.6.3
CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory: 152.00 MB / 8.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.15.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.5.0 - /usr/local/bin/npm
Watchman: 2023.04.10.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.12.0 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.3 AI-213.7172.25.2113.9123335
Xcode: 14.1/14B47b - /usr/bin/xcodebuild
Languages:
Java: 17.0.5 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.4 => 0.71.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce the behavior - a minimal reproducible code example, link to a snack or a repository.

Please provide a FULLY REPRODUCIBLE example.

Click to expand!
  
  <GooglePlacesAutocomplete
      nearbyPlacesAPI="GooglePlacesSearch"
      placeholder="Search location ..."
      listViewDisplayed="auto"
      debounce={300}
      currentLocation={true}
      minLength={1}
      enablePoweredByContainer={false}
      fetchDetails={true}
      autoFocus={true}
      styles={autoComplete}
      query={{
        key: GOOGLE_MAPS_APIKEY,
        language: 'en',
        components: 'country:ken',
        location: `${params?.location?.lat},${params?.location?.lng}`,
        radius: '12000',
        strictbounds: true,
      }}/>

Please remember to remove you google API key from the code you provide here

Additional context

  • Library Version: [e.g. 1.4.2]

  • React Native Version: [e.g. 0.62.2]

  • iOS

  • Android

  • Web

If you are using expo please indicate here:

  • I am using expo

Add any other context about the problem here, screenshots etc