From b342f1b5c82fe3d8bb1a353ebb33c3df26d47532 Mon Sep 17 00:00:00 2001 From: Kilian Finger Date: Sun, 8 Dec 2024 18:01:27 +0100 Subject: [PATCH] feat: export RegionPayload and MapLibreRNEvent types (#544) --- src/MapLibreRN.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/MapLibreRN.ts b/src/MapLibreRN.ts index 0614abd60..e60cb9288 100644 --- a/src/MapLibreRN.ts +++ b/src/MapLibreRN.ts @@ -9,7 +9,11 @@ export { type CameraBounds, type CameraRef, } from "./components/Camera"; -export { default as MapView, type MapViewRef } from "./components/MapView"; +export { + default as MapView, + type MapViewRef, + type RegionPayload, +} from "./components/MapView"; export { default as Light } from "./components/Light"; export { default as PointAnnotation } from "./components/PointAnnotation"; export type { PointAnnotationRef } from "./components/PointAnnotation"; @@ -35,6 +39,9 @@ export { default as CircleLayer } from "./components/CircleLayer"; export { default as SymbolLayer } from "./components/SymbolLayer"; export { default as RasterLayer } from "./components/RasterLayer"; export { default as BackgroundLayer } from "./components/BackgroundLayer"; +export { default as MarkerView } from "./components/MarkerView"; +export { default as Style } from "./components/Style"; + export { default as locationManager, type Location, @@ -49,9 +56,10 @@ export { default as OfflinePack } from "./modules/offline/OfflinePack"; export { default as OfflineCreatePackOptions } from "./modules/offline/OfflineCreatePackOptions"; export { default as snapshotManager } from "./modules/snapshot/snapshotManager"; export type { SnapshotInputOptions } from "./modules/snapshot/SnapshotOptions"; -export { default as MarkerView } from "./components/MarkerView"; + +export type { MapLibreRNEvent } from "./types/MapLibreRNEvent"; + export { default as Animated } from "./utils/animated/Animated"; -export { default as Style } from "./components/Style"; export { default as Logger, type LogLevel } from "./utils/Logger"; export type { FillLayerStyleProps as FillLayerStyle,