MCPcopy Index your code
hub / github.com/QuadFlask/react-native-naver-map

github.com/QuadFlask/react-native-naver-map @0.0.37

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.0.37 ↗ · + Follow
274 symbols 464 edges 37 files 2 documented · 1% updated 1y ago0.0.37 · 2019-10-22★ 16846 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

react-native-naver-map

네이버맵의 리액트 네이티브 브릿지입니다.

설치

npm install react-native-nmap --save;
  • React Native 0.60+
$ cd ios/ && pod install
  • React Native <= 0.59
$ react-native link react-native-nmap
$ cd ios/ && pod install

안드로이드 추가 설정

네이버 맵 안드로이드 SDK 문서를 따라 API키와 레포지터리 경로를 추가합니다

/android/build.gradle 파일에 아래와 같이 레포지터리를 추가합니다

allprojects {
    repositories {
        google()
        jcenter()

        // 네이버 지도 저장소
        maven {
            url 'https://navercorp.bintray.com/maps'
        }
    }
}

/android/app/src/AndroidManifest.xml에 아래와 같이 추가하고 발급받은 클라이언트 아이디로 바꿔줍니다.

<manifest>
    <application>
        <meta-data
            android:name="com.naver.maps.map.CLIENT_ID"
            android:value="YOUR_CLIENT_ID_HERE" />
    </application>
</manifest>

IOS 추가 설정

네이버 맵 IOS SDK 문서를 따라 API키와 레포지터리 경로를 추가합니다.

info.plist에 아래와 같이 발급받은 클라이언트 아이디를 추가해줍니다.

image

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
...
    <key>NMFClientId</key>
    <string>YOUR_CLIENT_ID_HERE</string>
...
<dict>
<plist>

컴포넌트

타입스크립트 타입 정의가 포함되어 있어 타입스크립트 사용을 추천합니다.

NaverMapView

interface NaverMapViewProps {
    style?: StyleProp<ViewStyle>,
    center?: Coord & { zoom?: number, tilt?: number, bearing?: number },
    tilt?: number,
    bearing?: number,
    mapPadding?: { left: number, top: number, right: number, bottom: number },
    onInitialized?: Function,
    onCameraChange?: (event: {
        latitude: number,
        longitude: number,
        zoom: number,
    }) => void,
    showsMyLocationButton?: boolean,
    compass?: boolean,
    scaleBar?: boolean,
    zoomControl?: boolean,
    mapType?: number,
    buildingHeight?: number,
    nightMode?: boolean,
}

Marker

interface MarkerProps {
    coordinate: Coord
    anchor?: { x: number, y: number }
    pinColor?: string
    rotation?: number
    flat?: boolean
    image?: ImageSourcePropType
}

Polyline

interface PolylineProps {
    coordinates: Coord[]
    strokeWidth?: number
    strokeColor?: string
}

Path

interface PathProps {
    coordinates: Coord[]
    width?: number
    color?: string
    outlineWidth?: number
    passedColor?: string
    outlineColor?: string
    passedOutlineColor?: string
    pattern?: ImageSourcePropType
    patternInterval?: number
}

Extension points exported contracts — how you extend this code

Coord (Interface)
(no doc)
index.d.ts
Coord (Interface)
(no doc)
index.tsx
Rect (Interface)
(no doc)
index.d.ts
Rect (Interface)
(no doc)
index.tsx
NaverMapViewProps (Interface)
(no doc)
index.d.ts
NaverMapViewProps (Interface)
(no doc)
index.tsx
RNNaverMapView (Interface)
(no doc)
index.d.ts
RNNaverMapView (Interface)
(no doc)
index.tsx

Core symbols most depended-on inside this repo

put
called by 18
android/src/main/java/com/github/quadflask/react/navermap/OverlayImages.java
getMap
called by 8
android/src/main/java/com/github/quadflask/react/navermap/RNNaverMapView.java
getFeature
called by 8
android/src/main/java/com/github/quadflask/react/navermap/RNNaverMapFeature.java
toNaverLatLng
called by 7
android/src/main/java/com/github/quadflask/react/navermap/ReactUtil.java
getInt
called by 7
android/src/main/java/com/github/quadflask/react/navermap/ReactUtil.java
get
called by 7
android/src/main/java/com/github/quadflask/react/navermap/OverlayImages.java
contextHasBug
called by 4
android/src/main/java/com/github/quadflask/react/navermap/RNNaverMapView.java
emitEvent
called by 4
android/src/main/java/com/github/quadflask/react/navermap/RNNaverMapView.java

Shape

Method 206
Class 48
Interface 16
Enum 2
Function 2

Languages

Java78%
TypeScript22%

Modules by API surface

android/src/main/java/com/github/quadflask/react/navermap/RNNaverMapView.java44 symbols
android/src/main/java/com/github/quadflask/react/navermap/RNNaverMapViewManager.java34 symbols
index.tsx25 symbols
index.d.ts19 symbols
android/src/main/java/com/github/quadflask/react/navermap/RNNaverMapMarker.java19 symbols
index.js17 symbols
android/src/main/java/com/github/quadflask/react/navermap/RNNaverMapPathOverlay.java17 symbols
android/src/main/java/com/github/quadflask/react/navermap/RNNaverMapMarkerManager.java16 symbols
android/src/main/java/com/github/quadflask/react/navermap/ReactUtil.java14 symbols
android/src/main/java/com/github/quadflask/react/navermap/RNNaverMapPathOverlayManager.java13 symbols
android/src/main/java/com/github/quadflask/react/navermap/RNNaverMapCircleOverlayManager.java10 symbols
android/src/main/java/com/github/quadflask/react/navermap/RNNaverMapCircleOverlay.java8 symbols

For agents

$ claude mcp add react-native-naver-map \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact