Gathering detailed insights and metrics for mapmyindia-search-widgets-react-native
Gathering detailed insights and metrics for mapmyindia-search-widgets-react-native
Gathering detailed insights and metrics for mapmyindia-search-widgets-react-native
Gathering detailed insights and metrics for mapmyindia-search-widgets-react-native
MapmyIndia Map library for React Native - Beta release Hybrid SDK
npm install mapmyindia-search-widgets-react-native
Typescript
Module System
Node Version
NPM Version
JavaScript (93.69%)
Objective-C (2.49%)
Ruby (1.72%)
Java (1.59%)
Starlark (0.36%)
Swift (0.09%)
C (0.06%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
2 Stars
16 Commits
2 Forks
2 Branches
Updated on Jan 24, 2025
Latest Version
0.2.0
Package Id
mapmyindia-search-widgets-react-native@0.2.0
Unpacked Size
1.26 MB
Size
354.27 kB
File Count
98
NPM Version
8.1.0
Node Version
17.0.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
npm install mapmyindia-search-widgets-react-native --save
1npm 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:-1allprojects { 2 repositories { 3 mavenLocal() 4 maven { 5// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 6 url("$rootDir/../node_modules/react-native/android") 7 } 8 maven { 9 // Android JSC is installed from npm 10 url("$rootDir/../node_modules/jsc-android/dist") 11 } 12 13 14+ maven { url 'https://maven.mapmyindia.com/repository/mapmyindia/'} 15 16 google() 17 jcenter() 18 maven { url 'https://www.jitpack.io' } 19 20 } 21 22}
android/app/build.gradle
file:-1defaultConfig { 2 3applicationId "com.example" 4 5minSdkVersion rootProject.ext.minSdkVersion 6 7targetSdkVersion rootProject.ext.targetSdkVersion 8 9versionCode 1 10 11versionName "1.0" 12 13+ multiDexEnabled true 14 15}
1import MapmyIndiaUIWidgets from 'mapmyindia-search-widgets-react-native' 2import MapmyIndiaGL from 'mapmyindia-map-react-native-beta';
Initialize the SDK with your keys.
1// for map sdk 2MapmyIndiaGL.setMapSDKKey(mapSDKKey);//place your mapsdkKey 3MapmyIndiaGL.setRestAPIKey(restAPIKey);//your restApiKey 4MapmyIndiaGL.setAtlasClientId(atlasClientId);//your atlasClientId key 5MapmyIndiaGL.setAtlasClientSecret(atlasClientSecret); //your atlasClientSecret key 6MapmyIndiaGL.setAtlasGrantType(atlasGrantType);
1 <MapmyIndiaUIWidgets.PlacePicker 2 center={plcePickerCenter} 3 zoom={10} 4 searchWidgetProps={{backgroundColor:'#F0FFF0'}} 5 pickerImage={{uri:'http://maps.google.com/mapfiles/ms/micons/blue.png'}} 6 resultCallback={(res) => 7 //Do something with result 8 } 9 />
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
1try{ 2 const res = await MapmyIndiaUIWidgets.searchWidget({toolbarColor:'#F5F5F5'}); 3 //Do something with result 4 }catch(e){ 5 //error logs 6 console.log(e); 7 }
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
No vulnerabilities found.
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
no SAST tool detected
Details
Reason
Found 0/16 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
82 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More