Skip to content

wkev-n/react-native-localsearch

 
 

Repository files navigation

React-Native-LocalSearch

React Native Module for IOS MapKit Local Search

Prerequisites

This module requires react-native-maps as a peer dependency. Run the following first if it is not an existing dependency.

npm install --save react-native-maps

Install

npm install --save react-native-localsearch

After install, also run pod install for auto linking.

cd ios/ && pod install

Usage

import { RNLocalSearch } from 'react-native-localsearch';

RNLocalSearch.searchForLocations(searchString, region, callback(err, resp) => {});

Example

import { RNLocalSearch } from 'react-native-localsearch';

const region = {
	latitude: 30.2669444,
	longitude: -97.7427778,
	latitudeDelta: 0.1,
	longitudeDelta: 0.1
};

RNLocalSearch.searchForLocations('restaurants', region, callback(err, resp) => {});

About

React Native Module for MapKit Local Search

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 71.4%
  • Ruby 24.8%
  • JavaScript 3.8%