UNPKG

@r2don/react-naver-map

Version:

## Introduction

16 lines (15 loc) 530 B
/// <reference types="navermaps" /> import { ReactNode } from "react"; declare type MapContext = naver.maps.Map | null; interface MapContextProviderProps { children: ReactNode; value: MapContext; } export declare const MapContextProvider: ({ children, value, }: MapContextProviderProps) => JSX.Element; /** * If you want to use `Maps` methods, you can use this. * * Make sure to use this inside of `map context` which provided by `Map` component */ export declare const useMapContext: () => naver.maps.Map; export {};