@maplibre/maplibre-react-native 10.0.0-beta.2 → 10.0.0-beta.21
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/README.md +12 -56
- package/android/build.gradle +120 -50
- package/android/gradle.properties +15 -0
- package/android/src/main/AndroidManifest.xml +4 -2
- package/android/src/main/AndroidManifestNew.xml +5 -0
- package/android/src/main/java/org/maplibre/reactnative/MLRNPackage.java +0 -5
- package/android/src/main/java/org/maplibre/reactnative/components/camera/MLRNCamera.java +37 -48
- package/android/src/main/java/org/maplibre/reactnative/components/location/LocationComponentManager.java +16 -9
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapView.java +11 -13
- package/android/src/main/java/org/maplibre/reactnative/components/mapview/MLRNMapViewManager.java +4 -11
- package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyle.java +1 -4
- package/android/src/main/java/org/maplibre/reactnative/components/styles/MLRNStyleFactory.java +10 -11
- package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNShapeSource.java +0 -66
- package/android/src/main/java/org/maplibre/reactnative/components/styles/sources/MLRNShapeSourceManager.java +0 -28
- package/android/src/main/java/org/maplibre/reactnative/location/LocationManager.java +7 -11
- package/android/src/main/java/org/maplibre/reactnative/location/engine/DefaultLocationEngineProvider.java +18 -0
- package/android/src/main/java/org/maplibre/reactnative/location/engine/LocationEngineProvidable.java +9 -0
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNModule.java +27 -148
- package/android/src/main/java/org/maplibre/reactnative/modules/MLRNOfflineModule.java +1 -3
- package/android/src/main/java/org/maplibre/reactnative/utils/GeoJSONUtils.java +123 -18
- package/android/src/main/location-engine-default/org/maplibre/reactnative/location/engine/LocationEngineProvider.java +12 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineImpl.java +151 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/GoogleLocationEngineProvider.java +24 -0
- package/android/src/main/location-engine-google/org/maplibre/reactnative/location/engine/LocationEngineProvider.java +12 -0
- package/app.plugin.js +1 -1
- package/ios/MLRN/MLRNBackgroundLayer.h +0 -1
- package/ios/MLRN/MLRNCamera.m +6 -7
- package/ios/MLRN/MLRNFillExtrusionLayer.h +0 -1
- package/ios/MLRN/MLRNFillLayer.h +0 -1
- package/ios/MLRN/MLRNFillLayer.m +1 -0
- package/ios/MLRN/MLRNLineLayer.h +0 -1
- package/ios/MLRN/MLRNMapView.h +1 -1
- package/ios/MLRN/MLRNMapView.m +7 -7
- package/ios/MLRN/MLRNMapViewManager.m +1 -1
- package/ios/MLRN/MLRNModule.m +8 -139
- package/ios/MLRN/MLRNRasterLayer.h +0 -1
- package/ios/MLRN/MLRNShapeSource.h +0 -11
- package/ios/MLRN/MLRNShapeSource.m +0 -38
- package/ios/MLRN/MLRNShapeSourceManager.m +0 -68
- package/ios/MLRN/MLRNStyle.m +0 -40
- package/ios/MLRN/MLRNSymbolLayer.h +1 -7
- package/ios/MLRN/MLRNSymbolLayer.m +1 -89
- package/ios/MLRN/MLRNSymbolLayerManager.m +0 -1
- package/lib/commonjs/MLRNModule.js +7 -5
- package/lib/commonjs/MLRNModule.js.map +1 -1
- package/lib/commonjs/MapLibreRN.js +74 -68
- package/lib/commonjs/MapLibreRN.js.map +1 -1
- package/lib/commonjs/components/Annotation.js +7 -9
- package/lib/commonjs/components/Annotation.js.map +1 -1
- package/lib/commonjs/components/BackgroundLayer.js +6 -8
- package/lib/commonjs/components/BackgroundLayer.js.map +1 -1
- package/lib/commonjs/components/Callout.js +2 -2
- package/lib/commonjs/components/Callout.js.map +1 -1
- package/lib/commonjs/components/Camera.js +111 -63
- package/lib/commonjs/components/Camera.js.map +1 -1
- package/lib/commonjs/components/CircleLayer.js +6 -8
- package/lib/commonjs/components/CircleLayer.js.map +1 -1
- package/lib/commonjs/components/FillExtrusionLayer.js +6 -8
- package/lib/commonjs/components/FillExtrusionLayer.js.map +1 -1
- package/lib/commonjs/components/FillLayer.js +6 -8
- package/lib/commonjs/components/FillLayer.js.map +1 -1
- package/lib/commonjs/components/HeadingIndicator.js +4 -4
- package/lib/commonjs/components/HeadingIndicator.js.map +1 -1
- package/lib/commonjs/components/HeatmapLayer.js +6 -8
- package/lib/commonjs/components/HeatmapLayer.js.map +1 -1
- package/lib/commonjs/components/ImageSource.js +4 -5
- package/lib/commonjs/components/ImageSource.js.map +1 -1
- package/lib/commonjs/components/Images.js +3 -7
- package/lib/commonjs/components/Images.js.map +1 -1
- package/lib/commonjs/components/Light.js +4 -6
- package/lib/commonjs/components/Light.js.map +1 -1
- package/lib/commonjs/components/LineLayer.js +6 -8
- package/lib/commonjs/components/LineLayer.js.map +1 -1
- package/lib/commonjs/components/MapView.js +69 -83
- package/lib/commonjs/components/MapView.js.map +1 -1
- package/lib/commonjs/components/MarkerView.js +4 -5
- package/lib/commonjs/components/MarkerView.js.map +1 -1
- package/lib/commonjs/components/NativeUserLocation.js +2 -2
- package/lib/commonjs/components/NativeUserLocation.js.map +1 -1
- package/lib/commonjs/components/PointAnnotation.js +7 -10
- package/lib/commonjs/components/PointAnnotation.js.map +1 -1
- package/lib/commonjs/components/RasterLayer.js +6 -8
- package/lib/commonjs/components/RasterLayer.js.map +1 -1
- package/lib/commonjs/components/RasterSource.js +8 -10
- package/lib/commonjs/components/RasterSource.js.map +1 -1
- package/lib/commonjs/components/ShapeSource.js +11 -45
- package/lib/commonjs/components/ShapeSource.js.map +1 -1
- package/lib/commonjs/components/SymbolLayer.js +8 -24
- package/lib/commonjs/components/SymbolLayer.js.map +1 -1
- package/lib/commonjs/components/UserLocation.js +21 -23
- package/lib/commonjs/components/UserLocation.js.map +1 -1
- package/lib/commonjs/components/VectorSource.js +9 -21
- package/lib/commonjs/components/VectorSource.js.map +1 -1
- package/lib/commonjs/hooks/useAbstractLayer.js +1 -1
- package/lib/commonjs/hooks/useAbstractLayer.js.map +1 -1
- package/lib/commonjs/hooks/useAbstractSource.js +1 -1
- package/lib/commonjs/hooks/useAbstractSource.js.map +1 -1
- package/lib/commonjs/hooks/useNativeBridge.js +2 -2
- package/lib/commonjs/hooks/useNativeBridge.js.map +1 -1
- package/lib/commonjs/hooks/useOnce.js +2 -2
- package/lib/commonjs/hooks/useOnce.js.map +1 -1
- package/lib/commonjs/index.js +3 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/modules/location/{locationManager.js → LocationManager.js} +10 -10
- package/lib/commonjs/modules/location/LocationManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js +2 -2
- package/lib/commonjs/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/commonjs/modules/offline/{offlineManager.js → OfflineManager.js} +34 -36
- package/lib/commonjs/modules/offline/OfflineManager.js.map +1 -0
- package/lib/commonjs/modules/offline/OfflinePack.js +2 -2
- package/lib/commonjs/modules/offline/OfflinePack.js.map +1 -1
- package/lib/commonjs/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +12 -14
- package/lib/commonjs/modules/snapshot/SnapshotManager.js.map +1 -0
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js +3 -4
- package/lib/commonjs/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/commonjs/plugin/MapLibrePluginProps.js +2 -0
- package/lib/commonjs/plugin/MapLibrePluginProps.js.map +1 -0
- package/lib/commonjs/plugin/android.js +41 -0
- package/lib/commonjs/plugin/android.js.map +1 -0
- package/lib/commonjs/plugin/ios.js +131 -0
- package/lib/commonjs/plugin/ios.js.map +1 -0
- package/lib/commonjs/plugin/withMapLibre.js +31 -0
- package/lib/commonjs/plugin/withMapLibre.js.map +1 -0
- package/lib/commonjs/types/MapLibreRNStyles.js +6 -0
- package/lib/commonjs/types/MapLibreRNStyles.js.map +1 -0
- package/lib/commonjs/utils/BridgeValue.js +2 -2
- package/lib/commonjs/utils/BridgeValue.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +2 -2
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/StyleValue.js +4 -5
- package/lib/commonjs/utils/StyleValue.js.map +1 -1
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js +2 -2
- package/lib/commonjs/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
- package/lib/commonjs/utils/animated/Animated.js +29 -31
- package/lib/commonjs/utils/animated/Animated.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js +4 -5
- package/lib/commonjs/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js +2 -2
- package/lib/commonjs/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedPoint.js +1 -2
- package/lib/commonjs/utils/animated/AnimatedPoint.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js +4 -4
- package/lib/commonjs/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
- package/lib/commonjs/utils/animated/AnimatedShape.js +2 -2
- package/lib/commonjs/utils/animated/AnimatedShape.js.map +1 -1
- package/lib/commonjs/utils/getStylePropertyType.js +252 -0
- package/lib/commonjs/utils/getStylePropertyType.js.map +1 -0
- package/lib/module/MLRNModule.js +3 -2
- package/lib/module/MLRNModule.js.map +1 -1
- package/lib/module/MapLibreRN.js +40 -32
- package/lib/module/MapLibreRN.js.map +1 -1
- package/lib/module/components/Annotation.js +5 -6
- package/lib/module/components/Annotation.js.map +1 -1
- package/lib/module/components/BackgroundLayer.js +4 -6
- package/lib/module/components/BackgroundLayer.js.map +1 -1
- package/lib/module/components/Callout.js +2 -3
- package/lib/module/components/Callout.js.map +1 -1
- package/lib/module/components/Camera.js +112 -64
- package/lib/module/components/Camera.js.map +1 -1
- package/lib/module/components/CircleLayer.js +4 -6
- package/lib/module/components/CircleLayer.js.map +1 -1
- package/lib/module/components/FillExtrusionLayer.js +4 -6
- package/lib/module/components/FillExtrusionLayer.js.map +1 -1
- package/lib/module/components/FillLayer.js +4 -6
- package/lib/module/components/FillLayer.js.map +1 -1
- package/lib/module/components/HeadingIndicator.js +2 -3
- package/lib/module/components/HeadingIndicator.js.map +1 -1
- package/lib/module/components/HeatmapLayer.js +4 -6
- package/lib/module/components/HeatmapLayer.js.map +1 -1
- package/lib/module/components/ImageSource.js +2 -3
- package/lib/module/components/ImageSource.js.map +1 -1
- package/lib/module/components/Images.js +3 -8
- package/lib/module/components/Images.js.map +1 -1
- package/lib/module/components/Light.js +2 -4
- package/lib/module/components/Light.js.map +1 -1
- package/lib/module/components/LineLayer.js +4 -6
- package/lib/module/components/LineLayer.js.map +1 -1
- package/lib/module/components/MapView.js +65 -79
- package/lib/module/components/MapView.js.map +1 -1
- package/lib/module/components/MarkerView.js +2 -3
- package/lib/module/components/MarkerView.js.map +1 -1
- package/lib/module/components/NativeUserLocation.js +1 -2
- package/lib/module/components/NativeUserLocation.js.map +1 -1
- package/lib/module/components/PointAnnotation.js +5 -7
- package/lib/module/components/PointAnnotation.js.map +1 -1
- package/lib/module/components/RasterLayer.js +4 -6
- package/lib/module/components/RasterLayer.js.map +1 -1
- package/lib/module/components/RasterSource.js +5 -7
- package/lib/module/components/RasterSource.js.map +1 -1
- package/lib/module/components/ShapeSource.js +9 -42
- package/lib/module/components/ShapeSource.js.map +1 -1
- package/lib/module/components/SymbolLayer.js +7 -23
- package/lib/module/components/SymbolLayer.js.map +1 -1
- package/lib/module/components/UserLocation.js +14 -15
- package/lib/module/components/UserLocation.js.map +1 -1
- package/lib/module/components/VectorSource.js +6 -17
- package/lib/module/components/VectorSource.js.map +1 -1
- package/lib/module/hooks/useAbstractLayer.js +1 -1
- package/lib/module/hooks/useAbstractLayer.js.map +1 -1
- package/lib/module/hooks/useAbstractSource.js +1 -1
- package/lib/module/hooks/useAbstractSource.js.map +1 -1
- package/lib/module/hooks/useNativeBridge.js +1 -2
- package/lib/module/hooks/useNativeBridge.js.map +1 -1
- package/lib/module/hooks/useNativeRef.js.map +1 -1
- package/lib/module/hooks/useOnce.js +1 -2
- package/lib/module/hooks/useOnce.js.map +1 -1
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/modules/location/{locationManager.js → LocationManager.js} +10 -9
- package/lib/module/modules/location/LocationManager.js.map +1 -0
- package/lib/module/modules/offline/OfflineCreatePackOptions.js +1 -2
- package/lib/module/modules/offline/OfflineCreatePackOptions.js.map +1 -1
- package/lib/module/modules/offline/{offlineManager.js → OfflineManager.js} +30 -30
- package/lib/module/modules/offline/OfflineManager.js.map +1 -0
- package/lib/module/modules/offline/OfflinePack.js +1 -2
- package/lib/module/modules/offline/OfflinePack.js.map +1 -1
- package/lib/module/modules/snapshot/{snapshotManager.js → SnapshotManager.js} +10 -10
- package/lib/module/modules/snapshot/{snapshotManager.js.map → SnapshotManager.js.map} +1 -1
- package/lib/module/modules/snapshot/SnapshotOptions.js +2 -3
- package/lib/module/modules/snapshot/SnapshotOptions.js.map +1 -1
- package/lib/module/plugin/MapLibrePluginProps.js +2 -0
- package/lib/module/plugin/MapLibrePluginProps.js.map +1 -0
- package/lib/module/plugin/android.js +34 -0
- package/lib/module/plugin/android.js.map +1 -0
- package/lib/module/plugin/ios.js +123 -0
- package/lib/module/plugin/ios.js.map +1 -0
- package/lib/module/plugin/withMapLibre.js +27 -0
- package/lib/module/plugin/withMapLibre.js.map +1 -0
- package/lib/module/types/MapLibreRNStyles.js +4 -0
- package/lib/module/types/MapLibreRNStyles.js.map +1 -0
- package/lib/module/utils/BridgeValue.js +1 -1
- package/lib/module/utils/BridgeValue.js.map +1 -1
- package/lib/module/utils/Logger.js +1 -2
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/StyleValue.js +3 -3
- package/lib/module/utils/StyleValue.js.map +1 -1
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js +1 -2
- package/lib/module/utils/animated/AbstractAnimatedCoordinates.js.map +1 -1
- package/lib/module/utils/animated/Animated.js +14 -15
- package/lib/module/utils/animated/Animated.js.map +1 -1
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js +2 -3
- package/lib/module/utils/animated/AnimatedCoordinatesArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js +1 -1
- package/lib/module/utils/animated/AnimatedExtractCoordinateFromArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedPoint.js +0 -1
- package/lib/module/utils/animated/AnimatedPoint.js.map +1 -1
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js +2 -2
- package/lib/module/utils/animated/AnimatedRouteCoordinatesArray.js.map +1 -1
- package/lib/module/utils/animated/AnimatedShape.js +1 -2
- package/lib/module/utils/animated/AnimatedShape.js.map +1 -1
- package/lib/module/utils/getStylePropertyType.js +248 -0
- package/lib/module/utils/getStylePropertyType.js.map +1 -0
- package/lib/typescript/commonjs/src/MLRNModule.d.ts +3 -7
- package/lib/typescript/commonjs/src/MLRNModule.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts +44 -34
- package/lib/typescript/commonjs/src/MapLibreRN.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Annotation.d.ts +6 -6
- package/lib/typescript/commonjs/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/BackgroundLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Callout.d.ts +3 -4
- package/lib/typescript/commonjs/src/components/Callout.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Camera.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/Camera.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/FillLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts +2 -3
- package/lib/typescript/commonjs/src/components/HeadingIndicator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/ImageSource.d.ts +3 -4
- package/lib/typescript/commonjs/src/components/ImageSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Images.d.ts +5 -5
- package/lib/typescript/commonjs/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/Light.d.ts +4 -5
- package/lib/typescript/commonjs/src/components/Light.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/MapView.d.ts +12 -16
- package/lib/typescript/commonjs/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/MarkerView.d.ts +3 -3
- package/lib/typescript/commonjs/src/components/MarkerView.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts +2 -3
- package/lib/typescript/commonjs/src/components/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts +7 -8
- package/lib/typescript/commonjs/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts +3 -5
- package/lib/typescript/commonjs/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/RasterSource.d.ts +4 -4
- package/lib/typescript/commonjs/src/components/RasterSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts +8 -16
- package/lib/typescript/commonjs/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts +3 -10
- package/lib/typescript/commonjs/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/UserLocation.d.ts +6 -6
- package/lib/typescript/commonjs/src/components/UserLocation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts +4 -8
- package/lib/typescript/commonjs/src/components/VectorSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts +5 -4
- package/lib/typescript/commonjs/src/hooks/useAbstractLayer.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts +4 -3
- package/lib/typescript/commonjs/src/hooks/useAbstractSource.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts +5 -5
- package/lib/typescript/commonjs/src/hooks/useNativeBridge.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts +2 -2
- package/lib/typescript/commonjs/src/hooks/useNativeRef.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/hooks/useOnce.d.ts +1 -2
- package/lib/typescript/commonjs/src/hooks/useOnce.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +3 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts +33 -0
- package/lib/typescript/commonjs/src/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
- package/lib/typescript/commonjs/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
- package/lib/typescript/{module/src/modules/offline/offlineManager.d.ts → commonjs/src/modules/offline/OfflineManager.d.ts} +27 -37
- package/lib/typescript/commonjs/src/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts +3 -4
- package/lib/typescript/commonjs/src/modules/offline/OfflinePack.d.ts.map +1 -1
- package/lib/typescript/{module/src/modules/snapshot/snapshotManager.d.ts → commonjs/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts +77 -0
- package/lib/typescript/commonjs/src/plugin/MapLibrePluginProps.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/android.d.ts +16 -0
- package/lib/typescript/commonjs/src/plugin/android.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/ios.d.ts +17 -0
- package/lib/typescript/commonjs/src/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts +5 -0
- package/lib/typescript/commonjs/src/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts +960 -0
- package/lib/typescript/commonjs/src/types/MapLibreRNStyles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/BridgeValue.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/Logger.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/Logger.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/StyleValue.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts +19 -19
- package/lib/typescript/commonjs/src/utils/animated/Animated.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
- package/lib/typescript/commonjs/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
- package/lib/typescript/commonjs/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts +5 -5
- package/lib/typescript/commonjs/src/utils/animated/AnimatedShape.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/filterUtils.d.ts +1 -1
- package/lib/typescript/commonjs/src/utils/filterUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts +35 -0
- package/lib/typescript/commonjs/src/utils/getStylePropertyType.d.ts.map +1 -0
- package/lib/typescript/module/src/MLRNModule.d.ts +3 -7
- package/lib/typescript/module/src/MLRNModule.d.ts.map +1 -1
- package/lib/typescript/module/src/MapLibreRN.d.ts +44 -34
- package/lib/typescript/module/src/MapLibreRN.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Annotation.d.ts +6 -6
- package/lib/typescript/module/src/components/Annotation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/BackgroundLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Callout.d.ts +3 -4
- package/lib/typescript/module/src/components/Callout.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Camera.d.ts +4 -4
- package/lib/typescript/module/src/components/Camera.d.ts.map +1 -1
- package/lib/typescript/module/src/components/CircleLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/CircleLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/FillExtrusionLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/FillLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/FillLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/HeadingIndicator.d.ts +2 -3
- package/lib/typescript/module/src/components/HeadingIndicator.d.ts.map +1 -1
- package/lib/typescript/module/src/components/HeatmapLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/HeatmapLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/ImageSource.d.ts +3 -4
- package/lib/typescript/module/src/components/ImageSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Images.d.ts +5 -5
- package/lib/typescript/module/src/components/Images.d.ts.map +1 -1
- package/lib/typescript/module/src/components/Light.d.ts +4 -5
- package/lib/typescript/module/src/components/Light.d.ts.map +1 -1
- package/lib/typescript/module/src/components/LineLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/LineLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/MapView.d.ts +12 -16
- package/lib/typescript/module/src/components/MapView.d.ts.map +1 -1
- package/lib/typescript/module/src/components/MarkerView.d.ts +3 -3
- package/lib/typescript/module/src/components/MarkerView.d.ts.map +1 -1
- package/lib/typescript/module/src/components/NativeUserLocation.d.ts +2 -3
- package/lib/typescript/module/src/components/NativeUserLocation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/PointAnnotation.d.ts +7 -8
- package/lib/typescript/module/src/components/PointAnnotation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/RasterLayer.d.ts +3 -5
- package/lib/typescript/module/src/components/RasterLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/RasterSource.d.ts +4 -4
- package/lib/typescript/module/src/components/RasterSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/ShapeSource.d.ts +8 -16
- package/lib/typescript/module/src/components/ShapeSource.d.ts.map +1 -1
- package/lib/typescript/module/src/components/SymbolLayer.d.ts +3 -10
- package/lib/typescript/module/src/components/SymbolLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/components/UserLocation.d.ts +6 -6
- package/lib/typescript/module/src/components/UserLocation.d.ts.map +1 -1
- package/lib/typescript/module/src/components/VectorSource.d.ts +4 -8
- package/lib/typescript/module/src/components/VectorSource.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts +5 -4
- package/lib/typescript/module/src/hooks/useAbstractLayer.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useAbstractSource.d.ts +4 -3
- package/lib/typescript/module/src/hooks/useAbstractSource.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts +5 -5
- package/lib/typescript/module/src/hooks/useNativeBridge.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useNativeRef.d.ts +2 -2
- package/lib/typescript/module/src/hooks/useNativeRef.d.ts.map +1 -1
- package/lib/typescript/module/src/hooks/useOnce.d.ts +1 -2
- package/lib/typescript/module/src/hooks/useOnce.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +3 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/location/LocationManager.d.ts +33 -0
- package/lib/typescript/module/src/modules/location/LocationManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts +1 -2
- package/lib/typescript/module/src/modules/offline/OfflineCreatePackOptions.d.ts.map +1 -1
- package/lib/typescript/{commonjs/src/modules/offline/offlineManager.d.ts → module/src/modules/offline/OfflineManager.d.ts} +27 -37
- package/lib/typescript/module/src/modules/offline/OfflineManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts +3 -4
- package/lib/typescript/module/src/modules/offline/OfflinePack.d.ts.map +1 -1
- package/lib/typescript/{commonjs/src/modules/snapshot/snapshotManager.d.ts → module/src/modules/snapshot/SnapshotManager.d.ts} +9 -9
- package/lib/typescript/module/src/modules/snapshot/SnapshotManager.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts +1 -1
- package/lib/typescript/module/src/modules/snapshot/SnapshotOptions.d.ts.map +1 -1
- package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts +77 -0
- package/lib/typescript/module/src/plugin/MapLibrePluginProps.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/android.d.ts +16 -0
- package/lib/typescript/module/src/plugin/android.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/ios.d.ts +17 -0
- package/lib/typescript/module/src/plugin/ios.d.ts.map +1 -0
- package/lib/typescript/module/src/plugin/withMapLibre.d.ts +5 -0
- package/lib/typescript/module/src/plugin/withMapLibre.d.ts.map +1 -0
- package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts +960 -0
- package/lib/typescript/module/src/types/MapLibreRNStyles.d.ts.map +1 -0
- package/lib/typescript/module/src/utils/BridgeValue.d.ts +1 -1
- package/lib/typescript/module/src/utils/BridgeValue.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/Logger.d.ts +2 -2
- package/lib/typescript/module/src/utils/Logger.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/StyleValue.d.ts +2 -2
- package/lib/typescript/module/src/utils/StyleValue.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts +2 -2
- package/lib/typescript/module/src/utils/animated/AbstractAnimatedCoordinates.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/Animated.d.ts +19 -19
- package/lib/typescript/module/src/utils/animated/Animated.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts +3 -3
- package/lib/typescript/module/src/utils/animated/AnimatedCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedExtractCoordinateFromArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedPoint.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts +2 -2
- package/lib/typescript/module/src/utils/animated/AnimatedRouteCoordinatesArray.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts +5 -5
- package/lib/typescript/module/src/utils/animated/AnimatedShape.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/filterUtils.d.ts +1 -1
- package/lib/typescript/module/src/utils/filterUtils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/getStylePropertyType.d.ts +35 -0
- package/lib/typescript/module/src/utils/getStylePropertyType.d.ts.map +1 -0
- package/maplibre-react-native.podspec +15 -14
- package/package.json +17 -14
- package/src/MLRNModule.ts +24 -10
- package/src/MapLibreRN.ts +66 -49
- package/src/components/Annotation.tsx +12 -14
- package/src/components/BackgroundLayer.tsx +7 -9
- package/src/components/Callout.tsx +8 -10
- package/src/components/Camera.tsx +154 -78
- package/src/components/CircleLayer.tsx +7 -9
- package/src/components/FillExtrusionLayer.tsx +7 -9
- package/src/components/FillLayer.tsx +7 -9
- package/src/components/HeadingIndicator.tsx +2 -6
- package/src/components/HeatmapLayer.tsx +7 -9
- package/src/components/ImageSource.tsx +4 -6
- package/src/components/Images.tsx +8 -19
- package/src/components/Light.tsx +5 -7
- package/src/components/LineLayer.tsx +7 -9
- package/src/components/MapView.tsx +85 -105
- package/src/components/MarkerView.tsx +4 -6
- package/src/components/NativeUserLocation.tsx +1 -4
- package/src/components/PointAnnotation.tsx +10 -11
- package/src/components/RasterLayer.tsx +7 -9
- package/src/components/RasterSource.tsx +7 -9
- package/src/components/ShapeSource.tsx +22 -95
- package/src/components/SymbolLayer.tsx +12 -41
- package/src/components/UserLocation.tsx +21 -22
- package/src/components/VectorSource.tsx +12 -35
- package/src/hooks/useAbstractLayer.ts +8 -8
- package/src/hooks/useAbstractSource.ts +6 -6
- package/src/hooks/useNativeBridge.ts +9 -6
- package/src/hooks/useNativeRef.ts +2 -2
- package/src/hooks/useOnce.ts +3 -3
- package/src/index.ts +3 -0
- package/src/modules/location/{locationManager.ts → LocationManager.ts} +16 -15
- package/src/modules/offline/OfflineCreatePackOptions.ts +1 -3
- package/src/modules/offline/{offlineManager.ts → OfflineManager.ts} +32 -45
- package/src/modules/offline/OfflinePack.ts +3 -5
- package/src/modules/snapshot/{snapshotManager.ts → SnapshotManager.ts} +9 -9
- package/src/modules/snapshot/SnapshotOptions.ts +2 -4
- package/src/plugin/MapLibrePluginProps.ts +83 -0
- package/src/plugin/android.ts +64 -0
- package/src/plugin/ios.ts +166 -0
- package/src/plugin/withMapLibre.ts +30 -0
- package/src/{utils/MapLibreRNStyles.d.ts → types/MapLibreRNStyles.ts} +86 -406
- package/src/utils/BridgeValue.ts +1 -1
- package/src/utils/Logger.ts +1 -3
- package/src/utils/StyleValue.ts +6 -5
- package/src/utils/animated/AbstractAnimatedCoordinates.ts +3 -3
- package/src/utils/animated/Animated.ts +23 -21
- package/src/utils/animated/AnimatedCoordinatesArray.ts +3 -4
- package/src/utils/animated/AnimatedExtractCoordinateFromArray.ts +1 -1
- package/src/utils/animated/AnimatedPoint.ts +0 -2
- package/src/utils/animated/AnimatedRouteCoordinatesArray.ts +3 -2
- package/src/utils/animated/AnimatedShape.ts +4 -6
- package/src/utils/filterUtils.ts +1 -1
- package/src/utils/getStylePropertyType.ts +265 -0
- package/android/src/main/res/values/strings.xml +0 -3
- package/lib/commonjs/components/Style.js +0 -266
- package/lib/commonjs/components/Style.js.map +0 -1
- package/lib/commonjs/modules/location/locationManager.js.map +0 -1
- package/lib/commonjs/modules/offline/offlineManager.js.map +0 -1
- package/lib/commonjs/modules/snapshot/snapshotManager.js.map +0 -1
- package/lib/commonjs/types/StyleURL.js +0 -11
- package/lib/commonjs/types/StyleURL.js.map +0 -1
- package/lib/commonjs/utils/MapLibreRNStyles.d.js +0 -181
- package/lib/commonjs/utils/MapLibreRNStyles.d.js.map +0 -1
- package/lib/commonjs/utils/deprecation.js +0 -31
- package/lib/commonjs/utils/deprecation.js.map +0 -1
- package/lib/commonjs/utils/styleMap.js +0 -255
- package/lib/commonjs/utils/styleMap.js.map +0 -1
- package/lib/module/components/Style.js +0 -261
- package/lib/module/components/Style.js.map +0 -1
- package/lib/module/modules/location/locationManager.js.map +0 -1
- package/lib/module/modules/offline/offlineManager.js.map +0 -1
- package/lib/module/types/StyleURL.js +0 -7
- package/lib/module/types/StyleURL.js.map +0 -1
- package/lib/module/utils/MapLibreRNStyles.d.js +0 -180
- package/lib/module/utils/MapLibreRNStyles.d.js.map +0 -1
- package/lib/module/utils/deprecation.js +0 -27
- package/lib/module/utils/deprecation.js.map +0 -1
- package/lib/module/utils/styleMap.js +0 -249
- package/lib/module/utils/styleMap.js.map +0 -1
- package/lib/typescript/commonjs/jest.config.d.ts +0 -2
- package/lib/typescript/commonjs/jest.config.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/components/Style.d.ts +0 -81
- package/lib/typescript/commonjs/src/components/Style.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts +0 -64
- package/lib/typescript/commonjs/src/modules/location/locationManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/offline/offlineManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types/StyleURL.d.ts +0 -4
- package/lib/typescript/commonjs/src/types/StyleURL.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/deprecation.d.ts +0 -6
- package/lib/typescript/commonjs/src/utils/deprecation.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/styleMap.d.ts +0 -231
- package/lib/typescript/commonjs/src/utils/styleMap.d.ts.map +0 -1
- package/lib/typescript/module/jest.config.d.ts +0 -2
- package/lib/typescript/module/jest.config.d.ts.map +0 -1
- package/lib/typescript/module/src/components/Style.d.ts +0 -81
- package/lib/typescript/module/src/components/Style.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/location/locationManager.d.ts +0 -64
- package/lib/typescript/module/src/modules/location/locationManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/offline/offlineManager.d.ts.map +0 -1
- package/lib/typescript/module/src/modules/snapshot/snapshotManager.d.ts.map +0 -1
- package/lib/typescript/module/src/types/StyleURL.d.ts +0 -4
- package/lib/typescript/module/src/types/StyleURL.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/deprecation.d.ts +0 -6
- package/lib/typescript/module/src/utils/deprecation.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/styleMap.d.ts +0 -231
- package/lib/typescript/module/src/utils/styleMap.d.ts.map +0 -1
- package/plugin/build/withMapLibre.d.ts +0 -12
- package/plugin/build/withMapLibre.js +0 -148
- package/src/components/Style.tsx +0 -371
- package/src/types/StyleURL.ts +0 -3
- package/src/utils/deprecation.ts +0 -31
- package/src/utils/styleMap.ts +0 -265
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import { type ViewProps, type NativeSyntheticEvent } from "react-native";
|
|
3
|
-
import { type Location } from "../modules/location/
|
|
3
|
+
import { type Location } from "../modules/location/LocationManager";
|
|
4
4
|
import { type BaseProps } from "../types/BaseProps";
|
|
5
|
-
import { type FilterExpression } from "../
|
|
5
|
+
import { type FilterExpression } from "../types/MapLibreRNStyles";
|
|
6
6
|
export declare const NATIVE_MODULE_NAME = "MLRNMapView";
|
|
7
7
|
export declare const ANDROID_TEXTURE_NATIVE_MODULE_NAME = "MLRNAndroidTextureMapView";
|
|
8
8
|
export interface RegionPayload {
|
|
@@ -24,13 +24,9 @@ interface MapViewProps extends BaseProps {
|
|
|
24
24
|
*/
|
|
25
25
|
style?: ViewProps["style"];
|
|
26
26
|
/**
|
|
27
|
-
* Style
|
|
27
|
+
* Style for map - either a URL or a Style JSON (https://maplibre.org/maplibre-style-spec/). Default: `StyleURL.Default`
|
|
28
28
|
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* StyleJSON for map - according to TileJSON specs: https://github.com/mapbox/tilejson-spec
|
|
32
|
-
*/
|
|
33
|
-
styleJSON?: string;
|
|
29
|
+
mapStyle?: string | object;
|
|
34
30
|
/**
|
|
35
31
|
* iOS: The preferred frame rate at which the map view is rendered.
|
|
36
32
|
* The default value for this property is MLNMapViewPreferredFramesPerSecondDefault,
|
|
@@ -136,19 +132,19 @@ interface MapViewProps extends BaseProps {
|
|
|
136
132
|
/**
|
|
137
133
|
* This event is triggered whenever the currently displayed map region is about to change.
|
|
138
134
|
*
|
|
139
|
-
* @param {
|
|
135
|
+
* @param {GeoJSON.Feature<GeoJSON.Point, RegionPayload>} feature - The geojson point feature at the camera center, properties contains zoomLevel, visibleBounds
|
|
140
136
|
*/
|
|
141
137
|
onRegionWillChange?(feature: GeoJSON.Feature<GeoJSON.Point, RegionPayload>): void;
|
|
142
138
|
/**
|
|
143
139
|
* This event is triggered whenever the currently displayed map region is changing.
|
|
144
140
|
*
|
|
145
|
-
* @param {
|
|
141
|
+
* @param {GeoJSON.Feature<GeoJSON.Point, RegionPayload>} feature - The geojson point feature at the camera center, properties contains zoomLevel, visibleBounds
|
|
146
142
|
*/
|
|
147
143
|
onRegionIsChanging?(feature: GeoJSON.Feature<GeoJSON.Point, RegionPayload>): void;
|
|
148
144
|
/**
|
|
149
145
|
* This event is triggered whenever the currently displayed map region finished changing
|
|
150
146
|
*
|
|
151
|
-
* @param {
|
|
147
|
+
* @param {GeoJSON.Feature<GeoJSON.Point, RegionPayload>} feature - The geojson point feature at the camera center, properties contains zoomLevel, visibleBounds
|
|
152
148
|
*/
|
|
153
149
|
onRegionDidChange?(feature: GeoJSON.Feature<GeoJSON.Point, RegionPayload>): void;
|
|
154
150
|
/**
|
|
@@ -206,6 +202,7 @@ interface MapViewProps extends BaseProps {
|
|
|
206
202
|
children?: ReactNode;
|
|
207
203
|
}
|
|
208
204
|
interface NativeProps extends Omit<MapViewProps, "onPress" | "onLongPress"> {
|
|
205
|
+
mapStyle?: string;
|
|
209
206
|
onPress(event: NativeSyntheticEvent<{
|
|
210
207
|
payload: GeoJSON.Feature;
|
|
211
208
|
}>): void;
|
|
@@ -214,12 +211,11 @@ interface NativeProps extends Omit<MapViewProps, "onPress" | "onLongPress"> {
|
|
|
214
211
|
}>): void;
|
|
215
212
|
}
|
|
216
213
|
export interface MapViewRef {
|
|
217
|
-
getPointInView: (coordinate: GeoJSON.Position) => Promise<
|
|
218
|
-
getCoordinateFromView: (point: number
|
|
214
|
+
getPointInView: (coordinate: GeoJSON.Position) => Promise<[x: number, y: number]>;
|
|
215
|
+
getCoordinateFromView: (point: [x: number, y: number]) => Promise<GeoJSON.Position>;
|
|
219
216
|
getVisibleBounds: () => Promise<VisibleBounds>;
|
|
220
217
|
queryRenderedFeaturesAtPoint: (point: [screenPointX: number, screenPointY: number], filter: FilterExpression | undefined, layerIDs: string[]) => Promise<GeoJSON.FeatureCollection>;
|
|
221
218
|
queryRenderedFeaturesInRect: (bbox: GeoJSON.BBox, filter: FilterExpression | undefined, layerIDs: string[]) => Promise<GeoJSON.FeatureCollection>;
|
|
222
|
-
setCamera: () => void;
|
|
223
219
|
takeSnap: (writeToDisk?: boolean) => Promise<string>;
|
|
224
220
|
getZoom: () => Promise<number>;
|
|
225
221
|
getCenter: () => Promise<GeoJSON.Position>;
|
|
@@ -230,6 +226,6 @@ export interface MapViewRef {
|
|
|
230
226
|
/**
|
|
231
227
|
* MapView backed by MapLibre Native
|
|
232
228
|
*/
|
|
233
|
-
declare const MapView: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<MapViewProps & import("react").RefAttributes<MapViewRef>>>;
|
|
234
|
-
export
|
|
229
|
+
export declare const MapView: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<MapViewProps & import("react").RefAttributes<MapViewRef>>>;
|
|
230
|
+
export {};
|
|
235
231
|
//# sourceMappingURL=MapView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../../src/components/MapView.tsx"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,SAAS,EAOf,MAAM,OAAO,CAAC;AACf,OAAO,EAKL,KAAK,SAAS,EAEd,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAItB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../../src/components/MapView.tsx"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,SAAS,EAOf,MAAM,OAAO,CAAC;AACf,OAAO,EAKL,KAAK,SAAS,EAEd,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAItB,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAYlE,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAEhD,eAAO,MAAM,kCAAkC,8BAA8B,CAAC;AAM9E,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,KAAK,aAAa,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEhF,UAAU,YAAa,SAAQ,SAAS;IACtC;;OAEG;IACH,YAAY,CA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D,MAAM,EAAE,gBAAgB,GAAG,SAAS,EACpC,QAAQ,EAAE,MAAM,EAAE,KACf,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACxC,2BAA2B,EAAE,CAC3B,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,MAAM,EAAE,gBAAgB,GAAG,SAAS,EACpC,QAAQ,EAAE,MAAM,EAAE,KACf,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACxC,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACrD,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B,SAAS,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3C,mBAAmB,EAAE,CACnB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,KAC1B,IAAI,CAAC;IACV,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,cAAc,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;CAC9C;AAED;;GAEG;AACH,eAAO,MAAM,OAAO,0IAojBnB,CAAC"}
|
|
@@ -29,7 +29,7 @@ interface MarkerViewProps extends ViewProps {
|
|
|
29
29
|
/**
|
|
30
30
|
* Expects one child - can be container with multiple elements
|
|
31
31
|
*/
|
|
32
|
-
children:
|
|
32
|
+
children: ReactElement;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* MarkerView allows you to place a interactive react native marker to the map.
|
|
@@ -39,6 +39,6 @@ interface MarkerViewProps extends ViewProps {
|
|
|
39
39
|
* This is based on [MakerView plugin](https://docs.mapbox.com/android/plugins/overview/markerview/) on Android
|
|
40
40
|
* and PointAnnotation on iOS.
|
|
41
41
|
*/
|
|
42
|
-
declare const MarkerView: ({ anchor, allowOverlap, isSelected, ...rest }: MarkerViewProps) =>
|
|
43
|
-
export
|
|
42
|
+
export declare const MarkerView: ({ anchor, allowOverlap, isSelected, ...rest }: MarkerViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export {};
|
|
44
44
|
//# sourceMappingURL=MarkerView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkerView.d.ts","sourceRoot":"","sources":["../../../../../src/components/MarkerView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAW,MAAM,OAAO,CAAC;AACnD,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKhF,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AAEnD,UAAU,eAAgB,SAAQ,SAAS;IACzC;;;OAGG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,CAAC,EAAE,MAAM,CAAC;QACV;;WAEG;QACH,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"MarkerView.d.ts","sourceRoot":"","sources":["../../../../../src/components/MarkerView.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAW,MAAM,OAAO,CAAC;AACnD,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAKhF,eAAO,MAAM,kBAAkB,mBAAmB,CAAC;AAEnD,UAAU,eAAgB,SAAQ,SAAS;IACzC;;;OAGG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,CAAC,EAAE,MAAM,CAAC;QACV;;WAEG;QACH,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;CACxB;AASD;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,kDAKpB,eAAe,4CAqBjB,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type ReactElement } from "react";
|
|
2
1
|
interface NativeUserLocationProps {
|
|
3
2
|
/**
|
|
4
3
|
* Android render mode.
|
|
@@ -21,6 +20,6 @@ interface NativeUserLocationProps {
|
|
|
21
20
|
*/
|
|
22
21
|
androidPreferredFramesPerSecond?: number;
|
|
23
22
|
}
|
|
24
|
-
declare const NativeUserLocation: (props: NativeUserLocationProps) =>
|
|
25
|
-
export
|
|
23
|
+
export declare const NativeUserLocation: (props: NativeUserLocationProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
26
25
|
//# sourceMappingURL=NativeUserLocation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeUserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/NativeUserLocation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NativeUserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/NativeUserLocation.tsx"],"names":[],"mappings":"AAIA,UAAU,uBAAuB;IAC/B;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC;IACjD;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC;;OAEG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;CAC1C;AAED,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,4CAEhE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactElement } from "react";
|
|
1
2
|
import { type ViewProps } from "react-native";
|
|
2
3
|
export declare const NATIVE_MODULE_NAME = "MLRNPointAnnotation";
|
|
3
4
|
type FeaturePayload = GeoJSON.Feature<GeoJSON.Point, {
|
|
@@ -19,7 +20,6 @@ export interface PointAnnotationProps {
|
|
|
19
20
|
snippet?: string;
|
|
20
21
|
/**
|
|
21
22
|
* Manually selects/deselects annotation
|
|
22
|
-
* @type {[type]}
|
|
23
23
|
*/
|
|
24
24
|
selected?: boolean;
|
|
25
25
|
/**
|
|
@@ -70,7 +70,7 @@ export interface PointAnnotationProps {
|
|
|
70
70
|
/**
|
|
71
71
|
* Expects one child, and an optional callout can be added as well
|
|
72
72
|
*/
|
|
73
|
-
children:
|
|
73
|
+
children: ReactElement | [ReactElement, ReactElement];
|
|
74
74
|
style?: ViewProps["style"];
|
|
75
75
|
}
|
|
76
76
|
export interface PointAnnotationRef {
|
|
@@ -79,13 +79,12 @@ export interface PointAnnotationRef {
|
|
|
79
79
|
/**
|
|
80
80
|
* PointAnnotation represents a one-dimensional shape located at a single geographical coordinate.
|
|
81
81
|
*
|
|
82
|
-
* Consider using ShapeSource and SymbolLayer instead, if you have many points and you have static images,
|
|
83
|
-
* they'll offer much better performance
|
|
82
|
+
* Consider using ShapeSource and SymbolLayer instead, if you have many points, and you have static images,
|
|
83
|
+
* they'll offer much better performance.
|
|
84
84
|
*
|
|
85
|
-
*
|
|
86
|
-
* If you need interctive views please use MarkerView,
|
|
85
|
+
* If you need interactive views please use MarkerView,
|
|
87
86
|
* as with PointAnnotation on Android child views are rendered onto a bitmap for better performance.
|
|
88
87
|
*/
|
|
89
|
-
declare const PointAnnotation: import("react").ForwardRefExoticComponent<PointAnnotationProps & import("react").RefAttributes<PointAnnotationRef>>;
|
|
90
|
-
export
|
|
88
|
+
export declare const PointAnnotation: import("react").ForwardRefExoticComponent<PointAnnotationProps & import("react").RefAttributes<PointAnnotationRef>>;
|
|
89
|
+
export {};
|
|
91
90
|
//# sourceMappingURL=PointAnnotation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointAnnotation.d.ts","sourceRoot":"","sources":["../../../../../src/components/PointAnnotation.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PointAnnotation.d.ts","sourceRoot":"","sources":["../../../../../src/components/PointAnnotation.tsx"],"names":[],"mappings":"AACA,OAAO,EAML,KAAK,YAAY,EAClB,MAAM,OAAO,CAAC;AACf,OAAO,EAGL,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAKtB,eAAO,MAAM,kBAAkB,wBAAwB,CAAC;AAUxD,KAAK,cAAc,GAAG,OAAO,CAAC,OAAO,CACnC,OAAO,CAAC,KAAK,EACb;IACE,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB,CACF,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,CAAC,EAAE,MAAM,CAAC;QACV;;WAEG;QACH,CAAC,EAAE,MAAM,CAAC;KACX,CAAC;IACF;;OAEG;IACH,UAAU,CAAC,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAC3C;;OAEG;IACH,YAAY,CAAC,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAC7C;;OAEG;IACH,WAAW,CAAC,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAC5C;;OAEG;IACH,SAAS,CAAC,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAC1C;;OAEG;IACH,MAAM,CAAC,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAEvC;;OAEG;IACH,QAAQ,EAAE,YAAY,GAAG,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IAEtD,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;CAC5B;AAMD,MAAM,WAAW,kBAAkB;IACjC,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,qHA+G3B,CAAC"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { type BaseLayerProps } from "../hooks/useAbstractLayer";
|
|
3
2
|
import { type BaseProps } from "../types/BaseProps";
|
|
4
|
-
import { type
|
|
3
|
+
import { type RasterLayerStyle } from "../types/MapLibreRNStyles";
|
|
5
4
|
export declare const NATIVE_MODULE_NAME = "MLRNRasterLayer";
|
|
6
5
|
export interface RasterLayerProps extends BaseProps, BaseLayerProps {
|
|
7
6
|
/**
|
|
8
7
|
* Customizable style attributes
|
|
9
8
|
*/
|
|
10
|
-
style?:
|
|
9
|
+
style?: RasterLayerStyle;
|
|
11
10
|
}
|
|
12
|
-
declare const RasterLayer:
|
|
13
|
-
export default RasterLayer;
|
|
11
|
+
export declare const RasterLayer: ({ sourceID, ...props }: RasterLayerProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
12
|
//# sourceMappingURL=RasterLayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RasterLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/RasterLayer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RasterLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/RasterLayer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAIlE,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD,MAAM,WAAW,gBAAiB,SAAQ,SAAS,EAAE,cAAc;IACjE;;OAEG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AAQD,eAAO,MAAM,WAAW,2BAGrB,gBAAgB,4CAUlB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
2
|
import { type BaseProps } from "../types/BaseProps";
|
|
3
3
|
export declare const NATIVE_MODULE_NAME = "MLRNRasterSource";
|
|
4
4
|
interface RasterSourceProps extends BaseProps {
|
|
@@ -41,13 +41,13 @@ interface RasterSourceProps extends BaseProps {
|
|
|
41
41
|
* source is part of a map view’s style and the map view’s attribution button is pressed.
|
|
42
42
|
*/
|
|
43
43
|
attribution?: string;
|
|
44
|
-
children?:
|
|
44
|
+
children?: ReactNode;
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* RasterSource is a map content source that supplies raster image tiles to be shown on the map.
|
|
48
48
|
* The location of and metadata about the tiles are defined either by an option dictionary
|
|
49
49
|
* or by an external file that conforms to the TileJSON specification.
|
|
50
50
|
*/
|
|
51
|
-
declare const RasterSource:
|
|
52
|
-
export
|
|
51
|
+
export declare const RasterSource: ({ id, ...props }: RasterSourceProps) => import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export {};
|
|
53
53
|
//# sourceMappingURL=RasterSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RasterSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/RasterSource.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"RasterSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/RasterSource.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAKpD,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AAMrD,UAAU,iBAAkB,SAAQ,SAAS;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAOD;;;;GAIG;AACH,eAAO,MAAM,YAAY,qBAGtB,iBAAiB,4CAsCnB,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Component, type
|
|
1
|
+
import { Component, type ReactNode } from "react";
|
|
2
2
|
import { type NativeMethods, type NativeSyntheticEvent } from "react-native";
|
|
3
3
|
import { type BaseProps } from "../types/BaseProps";
|
|
4
|
+
import { type ExpressionField, type FilterExpression } from "../types/MapLibreRNStyles";
|
|
4
5
|
import { type OnPressEvent } from "../types/OnPressEvent";
|
|
5
|
-
import { type ExpressionField, type FilterExpression } from "../utils/MapLibreRNStyles";
|
|
6
6
|
export declare const NATIVE_MODULE_NAME = "MLRNShapeSource";
|
|
7
|
-
export declare const SHAPE_SOURCE_NATIVE_ASSETS_KEY = "assets";
|
|
8
7
|
interface NativeProps {
|
|
9
8
|
shape?: string;
|
|
10
9
|
}
|
|
@@ -47,7 +46,7 @@ export interface ShapeSourceProps extends BaseProps {
|
|
|
47
46
|
* it accumulates the property value from clusters/points the cluster contains
|
|
48
47
|
* `map_expression` produces the value of a single point
|
|
49
48
|
*
|
|
50
|
-
*
|
|
49
|
+
* @example `{ "resultingSum": [["+", ["accumulated"], ["get", "resultingSum"]], ["get", "scalerank"]] }`
|
|
51
50
|
*
|
|
52
51
|
*/
|
|
53
52
|
clusterProperties?: {
|
|
@@ -79,18 +78,11 @@ export interface ShapeSourceProps extends BaseProps {
|
|
|
79
78
|
*/
|
|
80
79
|
lineMetrics?: boolean;
|
|
81
80
|
/**
|
|
82
|
-
* Source press listener, gets called when a user presses one of the children layers only
|
|
83
|
-
* if that layer has a higher z-index than another source layers
|
|
84
|
-
*
|
|
85
|
-
* @param {Object} event
|
|
86
|
-
* @param {Object[]} event.features - the geojson features that have hit by the press (might be multiple)
|
|
87
|
-
* @param {Object} event.coordinates - the coordinates of the click
|
|
88
|
-
* @param {Object} event.point - the point of the click
|
|
89
|
-
* @return void
|
|
81
|
+
* Source press listener, gets called when a user presses one of the children layers only if that layer has a higher z-index than another source layers.
|
|
90
82
|
*/
|
|
91
83
|
onPress?: (event: OnPressEvent) => void;
|
|
92
84
|
/**
|
|
93
|
-
* Overrides the default touch hitbox(44x44 pixels) for the source layers
|
|
85
|
+
* Overrides the default touch hitbox (44x44 pixels) for the source layers
|
|
94
86
|
*/
|
|
95
87
|
hitbox?: {
|
|
96
88
|
/**
|
|
@@ -102,7 +94,7 @@ export interface ShapeSourceProps extends BaseProps {
|
|
|
102
94
|
*/
|
|
103
95
|
height: number;
|
|
104
96
|
};
|
|
105
|
-
children?:
|
|
97
|
+
children?: ReactNode;
|
|
106
98
|
}
|
|
107
99
|
export interface ShapeSourceRef {
|
|
108
100
|
features(filter?: FilterExpression): Promise<GeoJSON.FeatureCollection>;
|
|
@@ -119,6 +111,6 @@ export interface ShapeSourceRef {
|
|
|
119
111
|
* ShapeSource is a map content source that supplies vector shapes to be shown on the map.
|
|
120
112
|
* The shape may be a url or a GeoJSON object
|
|
121
113
|
*/
|
|
122
|
-
declare const ShapeSource: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ShapeSourceProps & import("react").RefAttributes<ShapeSourceRef>>>;
|
|
123
|
-
export
|
|
114
|
+
export declare const ShapeSource: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<ShapeSourceProps & import("react").RefAttributes<ShapeSourceRef>>>;
|
|
115
|
+
export {};
|
|
124
116
|
//# sourceMappingURL=ShapeSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShapeSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/ShapeSource.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"ShapeSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/ShapeSource.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAGT,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AACf,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAU1D,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD,UAAU,WAAW;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,KAAK,sBAAsB,GAAG,SAAS,CAAC,WAAW,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;AAE/E,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EACF,OAAO,CAAC,kBAAkB,GAC1B,OAAO,CAAC,OAAO,GACf,OAAO,CAAC,iBAAiB,GACzB,OAAO,CAAC,QA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,IAAI,CAAC;IAC7C,OAAO,EAAE,CAAC,KAAK,EAAE,oBAAoB,CAAC;QAAE,OAAO,EAAE,YAAY,CAAA;KAAE,CAAC,KAAK,IAAI,CAAC;IAG1E,UAAU,EAAE,sBAAsB,GAAG,SAAS,CAAC;CAChD;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,kJA2MvB,CAAC"}
|
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
import { type ReactElement } from "react";
|
|
2
1
|
import { type BaseLayerProps } from "../hooks/useAbstractLayer";
|
|
3
2
|
import { type BaseProps } from "../types/BaseProps";
|
|
4
|
-
import { type
|
|
3
|
+
import { type SymbolLayerStyle } from "../types/MapLibreRNStyles";
|
|
5
4
|
export declare const NATIVE_MODULE_NAME = "MLRNSymbolLayer";
|
|
6
5
|
export interface SymbolLayerProps extends BaseProps, BaseLayerProps {
|
|
7
6
|
/**
|
|
8
7
|
* Customizable style attributes
|
|
9
8
|
*/
|
|
10
|
-
style?:
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated passed children used to create an image with id of symbol in style and also set the iconImageName property accordingly.
|
|
13
|
-
* This is now deprecated, use Image component instead.
|
|
14
|
-
*/
|
|
15
|
-
children?: ReactElement | ReactElement[];
|
|
9
|
+
style?: SymbolLayerStyle;
|
|
16
10
|
}
|
|
17
11
|
/**
|
|
18
12
|
* SymbolLayer is a style layer that renders icon and text labels at points or along lines on the map.
|
|
19
13
|
*/
|
|
20
|
-
declare const SymbolLayer:
|
|
21
|
-
export default SymbolLayer;
|
|
14
|
+
export declare const SymbolLayer: ({ sourceID, ...props }: SymbolLayerProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
15
|
//# sourceMappingURL=SymbolLayer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SymbolLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/SymbolLayer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SymbolLayer.d.ts","sourceRoot":"","sources":["../../../../../src/components/SymbolLayer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,cAAc,EAEpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAIlE,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD,MAAM,WAAW,gBAAiB,SAAQ,SAAS,EAAE,cAAc;IACjE;;OAEG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B;AAQD;;GAEG;AACH,eAAO,MAAM,WAAW,2BAGrB,gBAAgB,4CAclB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type Location } from "../modules/location/
|
|
3
|
-
export declare const normalIcon: (showsUserHeadingIndicator?: boolean, heading?: number) =>
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type Location } from "../modules/location/LocationManager";
|
|
3
|
+
export declare const normalIcon: (showsUserHeadingIndicator?: boolean, heading?: number) => import("react/jsx-runtime").JSX.Element[];
|
|
4
4
|
interface UserLocationProps {
|
|
5
5
|
/**
|
|
6
6
|
* Whether location icon is animated between updates
|
|
@@ -52,7 +52,7 @@ interface UserLocationProps {
|
|
|
52
52
|
*
|
|
53
53
|
* NOTE: Forking maintainer does not understand the above comment.
|
|
54
54
|
*/
|
|
55
|
-
children?:
|
|
55
|
+
children?: ReactNode;
|
|
56
56
|
}
|
|
57
57
|
export declare enum UserLocationRenderMode {
|
|
58
58
|
Native = "native",
|
|
@@ -65,6 +65,6 @@ export interface UserLocationRef {
|
|
|
65
65
|
needsLocationManagerRunning: () => boolean;
|
|
66
66
|
_onLocationUpdate: (location: Location | null) => void;
|
|
67
67
|
}
|
|
68
|
-
declare const UserLocation: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<UserLocationProps & import("react").RefAttributes<UserLocationRef>>>;
|
|
69
|
-
export
|
|
68
|
+
export declare const UserLocation: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<UserLocationProps & import("react").RefAttributes<UserLocationRef>>>;
|
|
69
|
+
export {};
|
|
70
70
|
//# sourceMappingURL=UserLocation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,
|
|
1
|
+
{"version":3,"file":"UserLocation.d.ts","sourceRoot":"","sources":["../../../../../src/components/UserLocation.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAMf,OAAO,EACL,KAAK,QAAQ,EAEd,MAAM,qCAAqC,CAAC;AAwB7C,eAAO,MAAM,UAAU,+BACO,OAAO,YACzB,MAAM,8CAqBjB,CAAC;AAEF,UAAU,iBAAiB;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACjC;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC;IACjD;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,IAAI,IAAI,CAAC;IACjB;;OAEG;IACH,QAAQ,CAAC,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IACpC;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAQD,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,kBAAkB,EAAE,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACnE,2BAA2B,EAAE,MAAM,OAAO,CAAC;IAC3C,iBAAiB,EAAE,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;CACxD;AAED,eAAO,MAAM,YAAY,oJAwKxB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
1
2
|
import { type BaseProps } from "../types/BaseProps";
|
|
2
3
|
import { type OnPressEvent } from "../types/OnPressEvent";
|
|
3
4
|
export declare const NATIVE_MODULE_NAME = "MLRNVectorSource";
|
|
@@ -39,11 +40,6 @@ interface VectorSourceProps extends BaseProps {
|
|
|
39
40
|
/**
|
|
40
41
|
* Source press listener, gets called when a user presses one of the children layers only
|
|
41
42
|
* if that layer has a higher z-index than another source layers
|
|
42
|
-
*
|
|
43
|
-
* @param {Object} event
|
|
44
|
-
* @param {Object[]} event.features - the geojson features that have hit by the press (might be multiple)
|
|
45
|
-
* @param {Object} event.coordinates - the coordinates of the click
|
|
46
|
-
* @param {Object} event.point - the point of the click
|
|
47
43
|
*/
|
|
48
44
|
onPress?: (event: OnPressEvent) => void;
|
|
49
45
|
/**
|
|
@@ -59,12 +55,12 @@ interface VectorSourceProps extends BaseProps {
|
|
|
59
55
|
*/
|
|
60
56
|
height: number;
|
|
61
57
|
};
|
|
62
|
-
children?:
|
|
58
|
+
children?: ReactNode;
|
|
63
59
|
}
|
|
64
60
|
/**
|
|
65
61
|
* VectorSource is a map content source that supplies tiled vector data in Mapbox Vector Tile format to be shown on the map.
|
|
66
62
|
* The location of and metadata about the tiles are defined either by an option dictionary or by an external file that conforms to the TileJSON specification.
|
|
67
63
|
*/
|
|
68
|
-
declare const VectorSource: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<VectorSourceProps & import("react").RefAttributes<unknown>>>;
|
|
69
|
-
export
|
|
64
|
+
export declare const VectorSource: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<VectorSourceProps & import("react").RefAttributes<unknown>>>;
|
|
65
|
+
export {};
|
|
70
66
|
//# sourceMappingURL=VectorSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VectorSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/VectorSource.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VectorSource.d.ts","sourceRoot":"","sources":["../../../../../src/components/VectorSource.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoB,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAS9E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAM1D,eAAO,MAAM,kBAAkB,qBAAqB,CAAC;AAErD,UAAU,iBAAkB,SAAQ,SAAS;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAOD;;;GAGG;AACH,eAAO,MAAM,YAAY,4IA4GxB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type Component } from "react";
|
|
1
2
|
import { processColor, type NativeMethods } from "react-native";
|
|
2
3
|
import { type BaseProps } from "../types/BaseProps";
|
|
3
|
-
import { type
|
|
4
|
+
import { type AllLayerStyle, type FilterExpression } from "../types/MapLibreRNStyles";
|
|
4
5
|
import { type StyleValue } from "../utils/StyleValue";
|
|
5
6
|
export interface BaseLayerProps {
|
|
6
7
|
/**
|
|
@@ -44,16 +45,16 @@ export interface BaseLayerProps {
|
|
|
44
45
|
/**
|
|
45
46
|
* Customizable style attributes
|
|
46
47
|
*/
|
|
47
|
-
style?:
|
|
48
|
+
style?: AllLayerStyle;
|
|
48
49
|
}
|
|
49
50
|
export interface NativeBaseProps {
|
|
50
51
|
reactStyle?: {
|
|
51
52
|
[key: string]: StyleValue;
|
|
52
53
|
};
|
|
53
54
|
}
|
|
54
|
-
export
|
|
55
|
+
export declare function useAbstractLayer<Props extends BaseProps, NativeProps extends NativeBaseProps>(props: Props & BaseLayerProps): {
|
|
55
56
|
baseProps: Props & BaseLayerProps;
|
|
56
|
-
setNativeLayer: (instance: (
|
|
57
|
+
setNativeLayer: (instance: (Component<NativeProps> & Readonly<NativeMethods>) | null) => void;
|
|
57
58
|
getStyleTypeFormatter: (styleType: string) => typeof processColor | undefined;
|
|
58
59
|
setNativeProps: (nativeProps: {
|
|
59
60
|
[key: string]: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAbstractLayer.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAbstractLayer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAbstractLayer.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAbstractLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE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S,CAAC;IAC9E,cAAc,EAAE,CAAC,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,KAAK,IAAI,CAAC;CACnE,CAoDA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Component } from "react";
|
|
1
2
|
import { type NativeMethods } from "react-native";
|
|
2
|
-
export
|
|
3
|
-
_nativeRef: (
|
|
4
|
-
setNativeRef: (instance:
|
|
3
|
+
export declare function useAbstractSource<NativePropsType extends object>(): {
|
|
4
|
+
_nativeRef: (Component<NativePropsType> & Readonly<NativeMethods>) | undefined;
|
|
5
|
+
setNativeRef: (instance: Component<NativePropsType> & Readonly<NativeMethods>) => void;
|
|
5
6
|
setNativeProps: (nativeProps: NativePropsType) => void;
|
|
6
7
|
};
|
|
7
8
|
//# sourceMappingURL=useAbstractSource.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAbstractSource.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAbstractSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAbstractSource.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useAbstractSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,wBAAgB,iBAAiB,CAAC,eAAe,SAAS,MAAM,KAAK;IACnE,UAAU,EACN,CAAC,SAAS,CAAC,eAAe,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC,GACtD,SAAS,CAAC;IACd,YAAY,EAAE,CACZ,QAAQ,EAAE,SAAS,CAAC,eAAe,CAAC,GAAG,QAAQ,CAAC,aAAa,CAAC,KAC3D,IAAI,CAAC;IACV,cAAc,EAAE,CAAC,WAAW,EAAE,eAAe,KAAK,IAAI,CAAC;CACxD,CAsBA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, type SyntheticEvent } from "react";
|
|
1
|
+
import { Component, type MutableRefObject, type SyntheticEvent } from "react";
|
|
2
2
|
import { type NativeArg } from "../utils";
|
|
3
3
|
export type RNMLEvent<PayloadType = {
|
|
4
4
|
[key: string]: string;
|
|
@@ -9,13 +9,13 @@ export type RNMLEvent<PayloadType = {
|
|
|
9
9
|
type UseNativeBridge = {
|
|
10
10
|
_nativeModuleName: string;
|
|
11
11
|
_onAndroidCallback: (e: SyntheticEvent<Element, RNMLEvent>) => void;
|
|
12
|
-
_callbackMap:
|
|
13
|
-
_preRefMapMethodQueue:
|
|
12
|
+
_callbackMap: MutableRefObject<Map<string, any>>;
|
|
13
|
+
_preRefMapMethodQueue: MutableRefObject<any[]>;
|
|
14
14
|
_addAddAndroidCallback: <ReturnType>(id: string, resolve: (value: ReturnType) => void, reject: (error: Error) => void) => void;
|
|
15
15
|
_removeAndroidCallback: (id: string) => void;
|
|
16
16
|
_runPendingNativeCommands: <RefType extends Component>(nativeRef: RefType | null | undefined) => Promise<void>;
|
|
17
17
|
_runNativeCommand: <RefType extends Component, ReturnType = NativeArg>(methodName: string, nativeRef: RefType | undefined | null, args?: NativeArg[]) => Promise<ReturnType>;
|
|
18
18
|
};
|
|
19
|
-
declare const useNativeBridge: (moduleName: string) => UseNativeBridge;
|
|
20
|
-
export
|
|
19
|
+
export declare const useNativeBridge: (moduleName: string) => UseNativeBridge;
|
|
20
|
+
export {};
|
|
21
21
|
//# sourceMappingURL=useNativeBridge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNativeBridge.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useNativeBridge.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useNativeBridge.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useNativeBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,cAAc,EAEpB,M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,8 @@
|
|
|
1
|
-
import { Component } from "react";
|
|
1
|
+
import { Component, type RefObject } from "react";
|
|
2
2
|
import { type NativeMethods } from "react-native";
|
|
3
3
|
export type NativeRef<NativeProps> = Component<NativeProps> & Readonly<NativeMethods>;
|
|
4
4
|
/**
|
|
5
5
|
* Separate module which allows to be mocked in tests.
|
|
6
6
|
*/
|
|
7
|
-
export declare function useNativeRef<NativeProps = object>():
|
|
7
|
+
export declare function useNativeRef<NativeProps = object>(): RefObject<NativeRef<NativeProps>>;
|
|
8
8
|
//# sourceMappingURL=useNativeRef.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNativeRef.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useNativeRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useNativeRef.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useNativeRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,WAAW,CAAC,GACzD,QAAQ,CAAC,aAAa,CAAC,CAAC;AAE1B;;GAEG;AACH,wBAAgB,YAAY,CAAC,WAAW,GAAG,MAAM,KAAK,SAAS,CAC7D,SAAS,CAAC,WAAW,CAAC,CACvB,CAEA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOnce.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useOnce.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"useOnce.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useOnce.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,IAS/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,cAAc,cAAc,CAAC;AAE7B,eAAe,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,cAAc,cAAc,CAAC;AAE7B;;GAEG;AACH,eAAe,UAAU,CAAC"}
|