
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
mapmyindia-search-widgets-react-native
Advanced tools
MapmyIndia React Native Search Widget is a readymade widget used to search

npm install mapmyindia-search-widgets-react-native --save
npm i mapmyindia-map-react-native-beta mapmyindia-restapi-react-native-beta react-native-simple-toast @react-native-community/netinfo
react-native link mapmyindia-search-widgets-react-native
android/build.gradle file:-allprojects {
repositories {
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
+ maven { url 'https://maven.mapmyindia.com/repository/mapmyindia/'}
google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}
android/app/build.gradle file:-defaultConfig {
applicationId "com.example"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"
+ multiDexEnabled true
}
import MapmyIndiaUIWidgets from 'mapmyindia-search-widgets-react-native'
import MapmyIndiaGL from 'mapmyindia-map-react-native-beta';
Initialize the SDK with your keys.
// for map sdk
MapmyIndiaGL.setMapSDKKey(mapSDKKey);//place your mapsdkKey
MapmyIndiaGL.setRestAPIKey(restAPIKey);//your restApiKey
MapmyIndiaGL.setAtlasClientId(atlasClientId);//your atlasClientId key
MapmyIndiaGL.setAtlasClientSecret(atlasClientSecret); //your atlasClientSecret key
MapmyIndiaGL.setAtlasGrantType(atlasGrantType);
<MapmyIndiaUIWidgets.PlacePicker
center={plcePickerCenter}
zoom={10}
searchWidgetProps={{backgroundColor:'#F0FFF0'}}
pickerImage={{uri:'http://maps.google.com/mapfiles/ms/micons/blue.png'}}
resultCallback={(res) =>
//Do something with result
}
/>
center :(number) place picker center coordinate(optional) note- if center is not provided map will zoom to current location of user.
zoom:(number) place picker map zoom level (optional)
pickerImage :place picker marker image. You can use static images or image urls.(optional)
searchWidgetProps :(object) custom configuration for search widget props inside place picker.(optional)
resultCallback:(function) returns result of place picker
try{
const res = await MapmyIndiaUIWidgets.searchWidget({toolbarColor:'#F5F5F5'});
//Do something with result
}catch(e){
//error logs
console.log(e);
}
location(Array): set location around which your search will appear. Ex. [77.56,28.34]
filter(String): this parameter helps you restrict the result either by mentioning a bounded area or to certain eloc (6 digit code to any poi, locality, city, etc.), below mentioned are the both types:
filter = bounds: lat1, lng1; lat2, lng2 (latitude, longitude) {e.g. filter("bounds: 28.598882, 77.212407; 28.467375, 77.353513")
- filter = cop: {eloc} (string) {e.g. filter("cop:YMCZ0J")historyCount(number): Maximum number of history results appear. (Android )
zoom(number): takes the zoom level of the current scope of the map (min: 4, max: 18).
saveHistory(Boolean): If it sets to true it shows the history selected data. (Android )
pod(String): 1. it takes in the place type code which helps in restricting the results to certain chosen type.Below mentioned are the codes for the pod
tokenizeAddress(Boolean): provides the different address attributes in a structured object.
backgroundColor(HexColor): to set the background color of the widget
toolbarColor(HexColor): to set the toolbar color of the widget.
hint(String): To set the hint on the Search view of the widget.

Email us at apisupport@mapmyindia.com
![]()
Ask a question under the mapmyindia-api
![]()
© Copyright 2022. CE Info Systems Ltd. All Rights Reserved. | Terms & Conditions
FAQs
MapmyIndia React Native Search Widget is a readymade widget used to search
We found that mapmyindia-search-widgets-react-native demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.