react-native-ipostmap-services
v1.0.0
Published
iPostMap services for React Native
Maintainers
Readme
react-native-ipostmap-services
iPostMap services for React Native
Installation
npm install react-native-ipostmap-servicesSetup API key
The API key is a unique identifier that authenticates requests associated with your project for usage and billing purposes. You must have at least one API key associated with your project.
Get an API key at https://map.ipostmap.vn/user > Developer > Key
Android
Provide access key from android/app/src/main/AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application>
<meta-data
android:name="vn.map4d.services.ACCESS_KEY"
android:value="YOUR_SERVICES_ACCESS_KEY"/>
</application>
</manifest>iOS
Provide access key from ios/Runner/Info.plist
<key>Map4dServicesAccessKey</key>
<string>YOUR_SERVICES_ACCESS_KEY</string>Usage
E.g. Auto Suggest
import { fetchSuggestion } from "react-native-ipostmap-services";
// ...
fetchSuggestion({text: 'abc'})
.then(response => {
console.log('Suggestion:', response);
})