INNER CODE UNIT · TypeScript

RNGooglePlacesNative

tolu360/react-native-google-places · index.d.ts:530

  class RNGooglePlacesNative {
    public openAutocompleteModal<K extends keyof GMSTypes.Place>(
      autocompleteFilter: RNGooglePlacesNativeOptions, placeFields: K[],
    ): Promise<Promise<Pick<GMSTypes.Place, (typeof placeFields)[number]>>>;

    public getAutocompletePredictions(
      query: string, filterOptions: RNGooglePlacesNativeOptions,
    ): Promise<GMSTypes.AutocompletePrediction[]>;

    public lookUpPlaceByID<K extends keyof GMSTypes.Place>(
      placeID: string, placeFields: K[]
    ): Promise<Pick<GMSTypes.Place, (typeof placeFields)[number]>>;

    public getCurrentPlace<K extends keyof GMSTypes.Place>(
      placeFields: K[]
    ): Promise<
      Pick<CurrentPlace, (typeof placeFields)[number] | "likelihood">[]
    >;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…