{"id":4766,"url":"https://github.com/laoqiu/react-native-amap","last_synced_at":"2026-01-17T11:37:37.586Z","repository":{"id":57335162,"uuid":"50154119","full_name":"laoqiu/react-native-amap","owner":"laoqiu","description":"react native amap module for android","archived":false,"fork":false,"pushed_at":"2017-09-15T06:36:10.000Z","size":11125,"stargazers_count":21,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-04T02:52:51.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laoqiu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-22T03:11:32.000Z","updated_at":"2025-05-27T09:23:11.000Z","dependencies_parsed_at":"2022-08-30T21:42:09.974Z","dependency_job_id":null,"html_url":"https://github.com/laoqiu/react-native-amap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/laoqiu/react-native-amap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laoqiu%2Freact-native-amap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laoqiu%2Freact-native-amap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laoqiu%2Freact-native-amap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laoqiu%2Freact-native-amap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laoqiu","download_url":"https://codeload.github.com/laoqiu/react-native-amap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laoqiu%2Freact-native-amap/sbom","scorecard":{"id":578810,"data":{"date":"2025-08-11","repo":{"name":"github.com/laoqiu/react-native-amap","commit":"2a309f289484c9cfea3659dc211dd859bb683ac9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":0,"reason":"binaries present in source code","details":["Warn: binary detected: libs/AMap3DMap_5.2.0_AMapSearch_5.1.0_AMapLocation_3.4.0_20170602.jar:1","Warn: binary detected: src/main/jniLibs/arm64-v8a/libGNaviData.so:1","Warn: binary detected: src/main/jniLibs/arm64-v8a/libGNaviMap.so:1","Warn: binary detected: src/main/jniLibs/arm64-v8a/libGNaviMapex.so:1","Warn: binary detected: src/main/jniLibs/arm64-v8a/libGNaviSearch.so:1","Warn: binary detected: src/main/jniLibs/arm64-v8a/libGNaviUtils.so:1","Warn: binary detected: src/main/jniLibs/arm64-v8a/libRoadLineRebuildAPI.so:1","Warn: binary detected: src/main/jniLibs/armeabi-v7a/libGNaviData.so:1","Warn: binary detected: src/main/jniLibs/armeabi-v7a/libGNaviMap.so:1","Warn: binary detected: src/main/jniLibs/armeabi-v7a/libGNaviMapex.so:1","Warn: binary detected: src/main/jniLibs/armeabi-v7a/libGNaviSearch.so:1","Warn: binary detected: src/main/jniLibs/armeabi-v7a/libGNaviUtils.so:1","Warn: binary detected: src/main/jniLibs/armeabi-v7a/libRoadLineRebuildAPI.so:1","Warn: binary detected: src/main/jniLibs/armeabi/libGNaviData.so:1","Warn: binary detected: src/main/jniLibs/armeabi/libGNaviMap.so:1","Warn: binary detected: src/main/jniLibs/armeabi/libGNaviMapex.so:1","Warn: binary detected: src/main/jniLibs/armeabi/libGNaviSearch.so:1","Warn: binary detected: src/main/jniLibs/armeabi/libGNaviUtils.so:1","Warn: binary detected: src/main/jniLibs/armeabi/libRoadLineRebuildAPI.so:1","Warn: binary detected: src/main/jniLibs/x86/libGNaviData.so:1","Warn: binary detected: src/main/jniLibs/x86/libGNaviMap.so:1","Warn: binary detected: src/main/jniLibs/x86/libGNaviMapex.so:1","Warn: binary detected: src/main/jniLibs/x86/libGNaviSearch.so:1","Warn: binary detected: src/main/jniLibs/x86/libGNaviUtils.so:1","Warn: binary detected: src/main/jniLibs/x86/libRoadLineRebuildAPI.so:1","Warn: binary detected: src/main/jniLibs/x86_64/libGNaviData.so:1","Warn: binary detected: src/main/jniLibs/x86_64/libGNaviMap.so:1","Warn: binary detected: src/main/jniLibs/x86_64/libGNaviMapex.so:1","Warn: binary detected: src/main/jniLibs/x86_64/libGNaviSearch.so:1","Warn: binary detected: src/main/jniLibs/x86_64/libGNaviUtils.so:1","Warn: binary detected: src/main/jniLibs/x86_64/libRoadLineRebuildAPI.so:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T18:36:07.718Z","repository_id":57335162,"created_at":"2025-08-20T18:36:07.718Z","updated_at":"2025-08-20T18:36:07.718Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28507948,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T10:25:30.148Z","status":"ssl_error","status_checked_at":"2026-01-17T10:25:29.718Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:17:22.644Z","updated_at":"2026-01-17T11:37:37.565Z","avatar_url":"https://github.com/laoqiu.png","language":"Java","funding_links":[],"categories":["Components"],"sub_categories":["Integrations"],"readme":"# React Native AMap\nA React Native component for building maps with the [AMap Android SDK](http://lbs.amap.com/api/android-sdk/summary/).\n\n## Example\n```\n...\nimport MapView from 'react-native-amap';\n\nclass example extends Component {\n  render() {\n    return (\n      \u003cView style={styles.container}\u003e\n        \u003cText style={styles.welcome}\u003e\n          Welcome to React Native!\n        \u003c/Text\u003e\n        \u003cMapView mode={1} style={{ flex: 1, width: 300, }} /\u003e\n      \u003c/View\u003e\n    );\n  }\n}\n...\n```\n![image](example/example.png)\n\n## Install\n\n### Step 1 - NPM install\n\n```\nnpm install react-native-amap --save\n```\n\n### Step 2 - Update Gradle Settings\n\n```\n// file: android/settings.gradle\n...\n\ninclude ':reactamap'\nproject(':reactamap').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-amap')\n```\n\n### Step 3 - Update app Gradle Build\n\n```\n// file: android/app/build.gradle\n...\n\ndependencies {\n    ...\n    compile project(':reactamap')\n}\n```\n\n### Step 4 - Register React Package\n\n#### react-native \u003e= v0.18.0\n```\nimport com.laoqiu.amap.AMapReactPackage;\n...\n   /**\n   * A list of packages used by the app. If the app uses additional views\n   * or modules besides the default ones, add more packages here.\n   */\n    @Override\n    protected List\u003cReactPackage\u003e getPackages() {\n      return Arrays.\u003cReactPackage\u003easList(\n        new MainReactPackage(),\n        new AMapReactPackage()); // \u003c-- Register package here\n    }\n...\n```\n#### react-native \u003c v0.18.0\n```\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        mReactRootView = new ReactRootView(this);\n        mReactInstanceManager = ReactInstanceManager.builder()\n        \t\t...\n\t\t\t\t.addPackage(new AMapReactPackage()) // \u003c-- Register package here\n\t\t\t\t...\n\t\t\t\t.build();\n\t\t...\n```\n### Step 5 - Add map permission and api key\n\n```\n// file: android/app/src/main/AndroidManifest.xml\n\t...\n\t\u003cuses-permission android:name=\"android.permission.INTERNET\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.READ_PHONE_STATE\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.ACCESS_LOCATION_EXTRA_COMMANDS\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.ACCESS_MOCK_LOCATION\" /\u003e\n    \u003cuses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\" /\u003e\n    \u003capplication\n      android:allowBackup=\"true\"\n      android:label=\"@string/app_name\"\n      android:icon=\"@mipmap/ic_launcher\"\n      android:theme=\"@style/AppTheme\"\u003e\n      \u003cmeta-data\n         android:name=\"com.amap.api.v2.apikey\"\n         android:value=\"your app key here\"/\u003e\n   ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaoqiu%2Freact-native-amap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaoqiu%2Freact-native-amap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaoqiu%2Freact-native-amap/lists"}