react-native-mapbox-places-autocomplete
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published
npm version

Mapbox Search Component for React Native

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

Preview

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

Package Sidebar

Install

npm i react-native-mapbox-places-autocomplete

Weekly Downloads

65

Version

0.0.3

License

MIT

Unpacked Size

73 kB

Total Files

11

Last publish

Collaborators

  • cipto