@react-native-kakao/map 2.2.6 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/README.md +5 -38
- package/RNCKakaoMap.podspec +16 -52
- package/android/build.gradle +12 -107
- package/android/consumer-rules.pro +2 -0
- package/android/src/main/AndroidManifest.xml +3 -1
- package/android/src/main/java/net/mjstudio/rnkakao/map/CameraOptions.kt +61 -0
- package/android/src/main/java/net/mjstudio/rnkakao/map/KakaoMapModule.kt +131 -0
- package/android/src/main/java/net/mjstudio/rnkakao/map/KakaoMapView.kt +1257 -0
- package/android/src/main/java/net/mjstudio/rnkakao/map/MapCameraCommands.kt +306 -0
- package/android/src/main/java/net/mjstudio/rnkakao/map/MapDimScreen.kt +431 -0
- package/android/src/main/java/net/mjstudio/rnkakao/map/MapGui.kt +899 -0
- package/android/src/main/java/net/mjstudio/rnkakao/map/MapImageLoader.kt +232 -0
- package/android/src/main/java/net/mjstudio/rnkakao/map/MapLabels.kt +1572 -0
- package/android/src/main/java/net/mjstudio/rnkakao/map/MapOptions.kt +360 -0
- package/android/src/main/java/net/mjstudio/rnkakao/map/MapRoutes.kt +805 -0
- package/android/src/main/java/net/mjstudio/rnkakao/map/MapShapes.kt +1096 -0
- package/android/src/main/java/net/mjstudio/rnkakao/map/MapUtilities.kt +495 -0
- package/expo-module.config.json +5 -0
- package/ios/CameraOptions.swift +41 -0
- package/ios/KakaoMapModule.swift +204 -0
- package/ios/KakaoMapView.swift +1018 -0
- package/ios/MapCameraCommands.swift +451 -0
- package/ios/MapDimScreen.swift +463 -0
- package/ios/MapGui.swift +1099 -0
- package/ios/MapImageLoader.swift +177 -0
- package/ios/MapLabels.swift +1676 -0
- package/ios/MapOptions.swift +374 -0
- package/ios/MapRoutes.swift +903 -0
- package/ios/MapShapes.swift +1294 -0
- package/ios/MapUnits.swift +20 -0
- package/ios/MapUtilities.swift +365 -0
- package/lib/commonjs/index.js +180 -29
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +18 -0
- package/lib/commonjs/index.web.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/types-assets.js +2 -0
- package/lib/commonjs/types-assets.js.map +1 -0
- package/lib/commonjs/types-camera.js +6 -0
- package/lib/commonjs/types-camera.js.map +1 -0
- package/lib/commonjs/types-dim.js +6 -0
- package/lib/commonjs/types-dim.js.map +1 -0
- package/lib/commonjs/types-gui.js +6 -0
- package/lib/commonjs/types-gui.js.map +1 -0
- package/lib/commonjs/types-labels.js +6 -0
- package/lib/commonjs/types-labels.js.map +1 -0
- package/lib/commonjs/types-routes.js +6 -0
- package/lib/commonjs/types-routes.js.map +1 -0
- package/lib/commonjs/types-shapes.js +6 -0
- package/lib/commonjs/types-shapes.js.map +1 -0
- package/lib/commonjs/types-utilities.js +6 -0
- package/lib/commonjs/types-utilities.js.map +1 -0
- package/lib/commonjs/types.js +6 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/module/index.js +180 -22
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +13 -0
- package/lib/module/index.web.js.map +1 -0
- package/lib/module/types-assets.js +2 -0
- package/lib/module/types-assets.js.map +1 -0
- package/lib/module/types-camera.js +4 -0
- package/lib/module/types-camera.js.map +1 -0
- package/lib/module/types-dim.js +4 -0
- package/lib/module/types-dim.js.map +1 -0
- package/lib/module/types-gui.js +4 -0
- package/lib/module/types-gui.js.map +1 -0
- package/lib/module/types-labels.js +4 -0
- package/lib/module/types-labels.js.map +1 -0
- package/lib/module/types-routes.js +4 -0
- package/lib/module/types-routes.js.map +1 -0
- package/lib/module/types-shapes.js +4 -0
- package/lib/module/types-shapes.js.map +1 -0
- package/lib/module/types-utilities.js +4 -0
- package/lib/module/types-utilities.js.map +1 -0
- package/lib/module/types.js +4 -0
- package/lib/module/types.js.map +1 -0
- package/lib/typescript/src/index.d.ts +59 -9
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types-assets.d.ts +9 -0
- package/lib/typescript/src/types-assets.d.ts.map +1 -0
- package/lib/typescript/src/types-camera.d.ts +123 -0
- package/lib/typescript/src/types-camera.d.ts.map +1 -0
- package/lib/typescript/src/types-dim.d.ts +54 -0
- package/lib/typescript/src/types-dim.d.ts.map +1 -0
- package/lib/typescript/src/types-gui.d.ts +189 -0
- package/lib/typescript/src/types-gui.d.ts.map +1 -0
- package/lib/typescript/src/types-labels.d.ts +246 -0
- package/lib/typescript/src/types-labels.d.ts.map +1 -0
- package/lib/typescript/src/types-routes.d.ts +162 -0
- package/lib/typescript/src/types-routes.d.ts.map +1 -0
- package/lib/typescript/src/types-shapes.d.ts +253 -0
- package/lib/typescript/src/types-shapes.d.ts.map +1 -0
- package/lib/typescript/src/types-utilities.d.ts +130 -0
- package/lib/typescript/src/types-utilities.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +222 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/package.json +24 -77
- package/src/index.tsx +322 -0
- package/src/index.web.tsx +46 -0
- package/src/types-assets.ts +8 -0
- package/src/types-camera.ts +97 -0
- package/src/types-dim.ts +54 -0
- package/src/types-gui.ts +171 -0
- package/src/types-labels.ts +207 -0
- package/src/types-routes.ts +118 -0
- package/src/types-shapes.ts +244 -0
- package/src/types-utilities.ts +115 -0
- package/src/types.ts +223 -0
- package/android/gradle.properties +0 -1
- package/android/src/main/AndroidManifestNew.xml +0 -2
- package/android/src/main/java/net/mjstudio/rnkakao/map/RNCKakaoMapModule.kt +0 -25
- package/android/src/main/java/net/mjstudio/rnkakao/map/RNCKakaoMapPackage.kt +0 -35
- package/android/src/newarch/KakaoMapSpec.kt +0 -7
- package/android/src/oldarch/KakaoMapSpec.kt +0 -14
- package/ios/Component/Map/RNCKakaoMapView.h +0 -23
- package/ios/Component/Map/RNCKakaoMapView.mm +0 -209
- package/ios/Component/Map/RNCKakaoMapViewManager.mm +0 -19
- package/ios/NativeModule/RNCKakaoMap.h +0 -7
- package/ios/NativeModule/RNCKakaoMap.mm +0 -19
- package/ios/NativeModule/RNCKakaoMapManager.swift +0 -7
- package/ios/Util/Util.h +0 -97
- package/lib/commonjs/component/KakaoMapView.js +0 -54
- package/lib/commonjs/component/KakaoMapView.js.map +0 -1
- package/lib/commonjs/spec/NativeKakaoMap.js +0 -9
- package/lib/commonjs/spec/NativeKakaoMap.js.map +0 -1
- package/lib/commonjs/spec/RNCKakaoMapViewNativeComponent.js +0 -15
- package/lib/commonjs/spec/RNCKakaoMapViewNativeComponent.js.map +0 -1
- package/lib/commonjs/type/type.js +0 -2
- package/lib/commonjs/type/type.js.map +0 -1
- package/lib/commonjs/util/Const.js +0 -14
- package/lib/commonjs/util/Const.js.map +0 -1
- package/lib/commonjs/util/Util.js +0 -15
- package/lib/commonjs/util/Util.js.map +0 -1
- package/lib/module/component/KakaoMapView.js +0 -48
- package/lib/module/component/KakaoMapView.js.map +0 -1
- package/lib/module/spec/NativeKakaoMap.js +0 -3
- package/lib/module/spec/NativeKakaoMap.js.map +0 -1
- package/lib/module/spec/RNCKakaoMapViewNativeComponent.js +0 -10
- package/lib/module/spec/RNCKakaoMapViewNativeComponent.js.map +0 -1
- package/lib/module/type/type.js +0 -2
- package/lib/module/type/type.js.map +0 -1
- package/lib/module/util/Const.js +0 -8
- package/lib/module/util/Const.js.map +0 -1
- package/lib/module/util/Util.js +0 -9
- package/lib/module/util/Util.js.map +0 -1
- package/lib/typescript/src/component/KakaoMapView.d.ts +0 -25
- package/lib/typescript/src/component/KakaoMapView.d.ts.map +0 -1
- package/lib/typescript/src/spec/NativeKakaoMap.d.ts +0 -7
- package/lib/typescript/src/spec/NativeKakaoMap.d.ts.map +0 -1
- package/lib/typescript/src/spec/RNCKakaoMapViewNativeComponent.d.ts +0 -32
- package/lib/typescript/src/spec/RNCKakaoMapViewNativeComponent.d.ts.map +0 -1
- package/lib/typescript/src/type/type.d.ts +0 -8
- package/lib/typescript/src/type/type.d.ts.map +0 -1
- package/lib/typescript/src/util/Const.d.ts +0 -8
- package/lib/typescript/src/util/Const.d.ts.map +0 -1
- package/lib/typescript/src/util/Util.d.ts +0 -3
- package/lib/typescript/src/util/Util.d.ts.map +0 -1
- package/src/component/KakaoMapView.tsx +0 -82
- package/src/index.ts +0 -43
- package/src/spec/NativeKakaoMap.ts +0 -8
- package/src/spec/RNCKakaoMapViewNativeComponent.ts +0 -38
- package/src/type/type.ts +0 -7
- package/src/util/Const.ts +0 -7
- package/src/util/Util.ts +0 -11
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NativeKakaoMap.d.ts","sourceRoot":"","sources":["../../../../src/spec/NativeKakaoMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD;;AAED,wBAAqE"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/// <reference types="react-native/types/modules/codegen" />
|
|
2
|
-
import type { ViewProps } from 'react-native';
|
|
3
|
-
import type { Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
4
|
-
interface Camera {
|
|
5
|
-
lat: Double;
|
|
6
|
-
lng: Double;
|
|
7
|
-
tilt?: Double;
|
|
8
|
-
rotation?: Double;
|
|
9
|
-
zoomLevel?: Double;
|
|
10
|
-
}
|
|
11
|
-
interface Props extends ViewProps {
|
|
12
|
-
buildingScale?: Double;
|
|
13
|
-
overlays?: ReadonlyArray<string>;
|
|
14
|
-
poiEnabled?: boolean;
|
|
15
|
-
poiClickable?: boolean;
|
|
16
|
-
poiScale?: string;
|
|
17
|
-
language?: string;
|
|
18
|
-
baseMapType?: string;
|
|
19
|
-
camera?: Camera;
|
|
20
|
-
initialCamera?: Camera;
|
|
21
|
-
cameraMinLevel?: Double;
|
|
22
|
-
cameraMaxLevel?: Double;
|
|
23
|
-
cameraAnimationDuration?: Double;
|
|
24
|
-
isShowScaleBar?: boolean;
|
|
25
|
-
isShowCompass?: boolean;
|
|
26
|
-
}
|
|
27
|
-
interface NativeCommands {
|
|
28
|
-
}
|
|
29
|
-
declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<Props>;
|
|
30
|
-
export default _default;
|
|
31
|
-
export declare const Commands: NativeCommands;
|
|
32
|
-
//# sourceMappingURL=RNCKakaoMapViewNativeComponent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RNCKakaoMapViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/spec/RNCKakaoMapViewNativeComponent.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAIxE,UAAU,MAAM;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,UAAU,KAAM,SAAQ,SAAS;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAID,UAAU,cAAc;CAAG;;AAE3B,wBAAgE;AAChE,eAAO,MAAM,QAAQ,EAAE,cAErB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/type/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Const.d.ts","sourceRoot":"","sources":["../../../../src/util/Const.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;IAChB;;;OAGG;;CAEsC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Util.d.ts","sourceRoot":"","sources":["../../../../src/util/Util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAI3C,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAMvC,CAAC"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { type ForwardedRef, forwardRef, useImperativeHandle, useMemo } from 'react';
|
|
2
|
-
import type { ViewProps } from 'react-native';
|
|
3
|
-
import { kAssert } from '@react-native-kakao/core';
|
|
4
|
-
|
|
5
|
-
import NativeKakaoMapComponent from '../spec/RNCKakaoMapViewNativeComponent';
|
|
6
|
-
import type { Camera } from '../type/type';
|
|
7
|
-
import { Const } from '../util/Const';
|
|
8
|
-
import { nullCamera } from '../util/Util';
|
|
9
|
-
|
|
10
|
-
interface KakaoMapProps extends ViewProps {
|
|
11
|
-
baseMapType?: 'map' | 'skyview';
|
|
12
|
-
overlays?: ('hill_shading' | 'roadview_line' | 'bicycle_road' | 'hybrid')[];
|
|
13
|
-
camera?: Camera;
|
|
14
|
-
initialCamera?: Camera;
|
|
15
|
-
cameraMinLevel?: number;
|
|
16
|
-
cameraMaxLevel?: number;
|
|
17
|
-
cameraAnimationDuration?: number;
|
|
18
|
-
|
|
19
|
-
buildingScale?: number;
|
|
20
|
-
poiEnabled?: boolean;
|
|
21
|
-
poiClickable?: boolean;
|
|
22
|
-
poiScale?: 'small' | 'regular' | 'large' | 'xlarge';
|
|
23
|
-
language?: 'ko' | 'en';
|
|
24
|
-
|
|
25
|
-
isShowScaleBar?: boolean;
|
|
26
|
-
isShowCompass?: boolean;
|
|
27
|
-
}
|
|
28
|
-
interface KakaoMapRef {}
|
|
29
|
-
|
|
30
|
-
const KakaoMapView = forwardRef(
|
|
31
|
-
(
|
|
32
|
-
{
|
|
33
|
-
baseMapType = 'map',
|
|
34
|
-
buildingScale = 0.5,
|
|
35
|
-
poiEnabled = true,
|
|
36
|
-
poiClickable = true,
|
|
37
|
-
poiScale = 'regular',
|
|
38
|
-
language,
|
|
39
|
-
overlays,
|
|
40
|
-
camera: cameraProp,
|
|
41
|
-
cameraMinLevel = Const.nullNumber,
|
|
42
|
-
cameraMaxLevel = Const.nullNumber,
|
|
43
|
-
cameraAnimationDuration = 0,
|
|
44
|
-
isShowScaleBar = true,
|
|
45
|
-
isShowCompass = true,
|
|
46
|
-
...rest
|
|
47
|
-
}: KakaoMapProps,
|
|
48
|
-
ref: ForwardedRef<KakaoMapRef>,
|
|
49
|
-
) => {
|
|
50
|
-
kAssert(
|
|
51
|
-
buildingScale >= 0 && buildingScale <= 1,
|
|
52
|
-
'[KakaoMapView] buildingScale range should be 0..1',
|
|
53
|
-
);
|
|
54
|
-
useImperativeHandle(ref, () => ({}), []);
|
|
55
|
-
|
|
56
|
-
const camera: Camera = useMemo(() => {
|
|
57
|
-
return { ...nullCamera, ...cameraProp };
|
|
58
|
-
}, [cameraProp]);
|
|
59
|
-
|
|
60
|
-
return (
|
|
61
|
-
<NativeKakaoMapComponent
|
|
62
|
-
baseMapType={baseMapType}
|
|
63
|
-
buildingScale={buildingScale}
|
|
64
|
-
camera={camera}
|
|
65
|
-
cameraMinLevel={cameraMinLevel}
|
|
66
|
-
cameraMaxLevel={cameraMaxLevel}
|
|
67
|
-
cameraAnimationDuration={cameraAnimationDuration}
|
|
68
|
-
poiEnabled={poiEnabled}
|
|
69
|
-
poiClickable={poiClickable}
|
|
70
|
-
poiScale={poiScale}
|
|
71
|
-
language={language}
|
|
72
|
-
overlays={overlays}
|
|
73
|
-
isShowScaleBar={isShowScaleBar}
|
|
74
|
-
isShowCompass={isShowCompass}
|
|
75
|
-
{...rest}
|
|
76
|
-
/>
|
|
77
|
-
);
|
|
78
|
-
},
|
|
79
|
-
);
|
|
80
|
-
|
|
81
|
-
export { KakaoMapView };
|
|
82
|
-
export type { KakaoMapProps, KakaoMapRef };
|
package/src/index.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Platform } from 'react-native';
|
|
2
|
-
|
|
3
|
-
import type { KakaoMapProps, KakaoMapRef } from './component/KakaoMapView';
|
|
4
|
-
import { KakaoMapView } from './component/KakaoMapView';
|
|
5
|
-
import type { Spec } from './spec/NativeKakaoMap';
|
|
6
|
-
|
|
7
|
-
const LINKING_ERROR =
|
|
8
|
-
"The package '@react-native-kakao/map' doesn't seem to be linked. Make sure: \n\n" +
|
|
9
|
-
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
|
|
10
|
-
'- You rebuilt the app after installing the package\n' +
|
|
11
|
-
'- You are not using Expo Go\n';
|
|
12
|
-
|
|
13
|
-
const isTurboModuleEnabled = global.__turboModuleProxy != null;
|
|
14
|
-
|
|
15
|
-
if (!isTurboModuleEnabled) {
|
|
16
|
-
throw new Error('The package @react-native-kakao/map only supports fabric');
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const Module = require('./spec/NativeKakaoMap').default;
|
|
20
|
-
|
|
21
|
-
const Native: Spec = Module
|
|
22
|
-
? Module
|
|
23
|
-
: new Proxy(
|
|
24
|
-
{},
|
|
25
|
-
{
|
|
26
|
-
get() {
|
|
27
|
-
throw new Error(LINKING_ERROR);
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
);
|
|
31
|
-
// todo remove
|
|
32
|
-
console.log(Native);
|
|
33
|
-
|
|
34
|
-
const KakaoMap = {
|
|
35
|
-
initializeKakaoMapSDK: async (appKey: string) => {
|
|
36
|
-
return await Native.initializeKakaoMapSDK(appKey);
|
|
37
|
-
},
|
|
38
|
-
};
|
|
39
|
-
export default KakaoMapView;
|
|
40
|
-
export type KakaoMapAPI = typeof KakaoMap;
|
|
41
|
-
|
|
42
|
-
export { KakaoMapView, KakaoMap };
|
|
43
|
-
export type { KakaoMapProps, KakaoMapRef };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { TurboModule } from 'react-native';
|
|
2
|
-
import { TurboModuleRegistry } from 'react-native';
|
|
3
|
-
|
|
4
|
-
export interface Spec extends TurboModule {
|
|
5
|
-
initializeKakaoMapSDK(appKey: string): Promise<void>;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export default TurboModuleRegistry.getEnforcing<Spec>('RNCKakaoMap');
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { ViewProps } from 'react-native';
|
|
2
|
-
import type { Double } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
-
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
4
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
5
|
-
|
|
6
|
-
interface Camera {
|
|
7
|
-
lat: Double;
|
|
8
|
-
lng: Double;
|
|
9
|
-
tilt?: Double;
|
|
10
|
-
rotation?: Double;
|
|
11
|
-
zoomLevel?: Double;
|
|
12
|
-
}
|
|
13
|
-
interface Props extends ViewProps {
|
|
14
|
-
buildingScale?: Double;
|
|
15
|
-
overlays?: ReadonlyArray<string>;
|
|
16
|
-
poiEnabled?: boolean;
|
|
17
|
-
poiClickable?: boolean;
|
|
18
|
-
poiScale?: string;
|
|
19
|
-
language?: string;
|
|
20
|
-
baseMapType?: string;
|
|
21
|
-
camera?: Camera;
|
|
22
|
-
initialCamera?: Camera;
|
|
23
|
-
cameraMinLevel?: Double;
|
|
24
|
-
cameraMaxLevel?: Double;
|
|
25
|
-
cameraAnimationDuration?: Double;
|
|
26
|
-
|
|
27
|
-
isShowScaleBar?: boolean;
|
|
28
|
-
isShowCompass?: boolean;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// type ComponentType = HostComponent<Props>;
|
|
32
|
-
|
|
33
|
-
interface NativeCommands {}
|
|
34
|
-
|
|
35
|
-
export default codegenNativeComponent<Props>('RNCKakaoMapView');
|
|
36
|
-
export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
|
|
37
|
-
supportedCommands: [],
|
|
38
|
-
});
|
package/src/type/type.ts
DELETED
package/src/util/Const.ts
DELETED
package/src/util/Util.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Camera } from '../type/type';
|
|
2
|
-
|
|
3
|
-
import { Const } from './Const';
|
|
4
|
-
|
|
5
|
-
export const nullCamera: Required<Camera> = {
|
|
6
|
-
lat: Const.nullNumber,
|
|
7
|
-
lng: Const.nullNumber,
|
|
8
|
-
tilt: Const.nullNumber,
|
|
9
|
-
rotation: Const.nullNumber,
|
|
10
|
-
zoomLevel: Const.nullNumber,
|
|
11
|
-
};
|