Skip to content

Filtering by types does not work #686

Open
@tgreco

Description

@tgreco

Describe the bug

I am trying to filter by schools using the GooglePlacesSearchQuery property but it does not have any affect.

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

  
  <GooglePlacesAutocomplete
          placeholder='Search'
          currentLocation={true}
          currentLocationLabel='Current location'
          enablePoweredByContainer={false}
          fetchDetails={true}

          onPress={(data, details = null) => {
            // 'details' is provided when fetchDetails = true
            console.log(data, details);
          }}
          query={{
            key: '****',
            language: 'en',
          }}
          GooglePlacesSearchQuery={{
            type: 'primary_school|school|secondary_school'
          }}
        />

Additional context

  • Library Version: 2.1.2

  • React Native Version: 0.63.2

  • [ X] iOS

  • Android

  • Web

  • I am using expo

image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions