Skip to content

expo-gaode-mapAMap React Native Component

Complete AMap solution built with Expo Modules

expo-gaode-map

Quick Start

Version Compatibility

  • If you are using Expo SDK 54+, please install the Latest version.
  • If you are using Expo SDK 53 or lower (e.g., 50, 51, 52, 53), please use the V1 version (Tag: v1).
    bash
    npm install expo-gaode-map@v1
    Note: Apart from lacking World Map functionality, the V1 version shares the same API as V2 (Latest).

Installation

bash
npm install expo-gaode-map

Basic Usage

tsx
import { MapView, ExpoGaodeMapModule } from 'expo-gaode-map';

// Initialize SDK
ExpoGaodeMapModule.initSDK({
  androidKey: 'your-android-api-key',
  iosKey: 'your-ios-api-key',
});

// Use map component
<MapView
  style={{ flex: 1 }}
  initialCameraPosition={{
    target: { latitude: 39.9, longitude: 116.4 },
    zoom: 10,
  }}
  myLocationEnabled={true}
/>

Why expo-gaode-map?

  • Built with Expo Modules: Modern development experience
  • Feature Complete: Cover main AMap features
  • Well Documented: Detailed documentation in Chinese and English
  • Actively Maintained: Continuous updates and community support
  • Open Source: MIT license, free for commercial use

Community