Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wmcmahan/React-Native-LocalSearch
React Native Module for MapKit Local Search
https://github.com/wmcmahan/React-Native-LocalSearch
Last synced: 3 months ago
JSON representation
React Native Module for MapKit Local Search
- Host: GitHub
- URL: https://github.com/wmcmahan/React-Native-LocalSearch
- Owner: wmcmahan
- License: mit
- Created: 2015-07-19T19:13:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-18T00:02:46.000Z (over 1 year ago)
- Last Synced: 2024-08-02T09:03:18.357Z (3 months ago)
- Language: Objective-C
- Size: 16.6 KB
- Stars: 21
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-native - react-native-localsearch ★17 - React Native Module for MapKit Local Search (Components / System)
- awesome-react-native - react-native-localsearch ★17 - React Native Module for MapKit Local Search (Components / System)
- awesome-react-native - react-native-localsearch ★17 - React Native Module for MapKit Local Search (Components / System)
- awesome-react-native - react-native-localsearch ★17 - React Native Module for MapKit Local Search (Components / System)
- awesome-react-native-ui - react-native-localsearch ★16 - React Native Module for MapKit Local Search (Components / System)
README
# React-Native-LocalSearch
React Native Module for IOS MapKit Local Search## Install
```
npm install --save react-native-localsearch
```
Then add RNLocalSearch to project libraries.## Usage
```javascript
var RNLocalSearch = require('react-native-localsearch');RNLocalSearch.searchForLocations(searchString, region, callback(err, resp) => {});
```## Example
```javascript
var RNLocalSearch = require('react-native-localsearch');const region = {
latitude: 30.2669444,
longitude: -97.7427778,
latitudeDelta: 0.1,
longitudeDelta: 0.1
};RNLocalSearch.searchForLocations('Lalas', region, callback(err, resp) => {});
```