0.0.3 • Published 3 years ago

react-native-mapbox-places-autocomplete v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Mapbox Search Component for React Native

Customizable Mapbox Places autocomplete component for iOS and Android React-Native apps

Preview

npm.io

Support

Buy me a coffe at:

BuyMeACoffee

Saweria

Installation

Step 1.

npm install react-native-mapbox-places-autocomplete --save

or

yarn add react-native-mapbox-places-autocomplete

Step 2.

Get your Mapbox Public Token

Basic Example

Basic Address Search

import React from "react";
import MapboxPlacesAutocomplete from "react-native-mapbox-places-autocomplete";

const MapboxPlacesInput = () => {
  return (
    <MapboxPlacesAutocomplete
      placeholder="Origin"
      accessToken={APIKEY}
      onPlaceSelect={(data) => {
        console.log(data);
      }}
      countryId="id"
    />
  );
};

export default MapboxPlacesInput;

Changelog

Please see the releases tab for the changelog information.

License

MIT

Authors