@ranamaps/maps-react-native 0.0.0-stage → 0.4.0-beta.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/BETA-STATUS.md +13 -0
- package/CHANGELOG.md +40 -0
- package/LICENSE.md +13 -0
- package/NOTICES.md +230 -0
- package/README.md +61 -2
- package/RanaMapsReactNative.podspec +17 -0
- package/android/build.gradle +25 -0
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/main/java/com/ranamaps/reactnative/RanaMapManager.kt +115 -0
- package/android/src/main/java/com/ranamaps/reactnative/RanaMapsModule.kt +41 -0
- package/android/src/main/java/com/ranamaps/reactnative/RanaMapsPackage.kt +11 -0
- package/app.plugin.js +127 -0
- package/ios/RanaMapViewComponentView.mm +116 -0
- package/ios/RanaMapsModule.mm +32 -0
- package/ios/RanaNativeRuntime.swift +42 -0
- package/lib/bridge.d.ts +40 -0
- package/lib/bridge.js +152 -0
- package/lib/index.d.ts +31 -0
- package/lib/index.js +113 -0
- package/lib/map-lifecycle.d.ts +5 -0
- package/lib/map-lifecycle.js +10 -0
- package/lib/models.d.ts +509 -0
- package/lib/models.js +2 -0
- package/lib/sdk.d.ts +309 -0
- package/lib/sdk.js +588 -0
- package/lib/specs/NativeRanaMaps.d.ts +8 -0
- package/lib/specs/NativeRanaMaps.js +4 -0
- package/lib/specs/RanaMapViewNativeComponent.d.ts +13 -0
- package/lib/specs/RanaMapViewNativeComponent.js +4 -0
- package/lib/specs/RanaMarkerViewNativeComponent.d.ts +9 -0
- package/lib/specs/RanaMarkerViewNativeComponent.js +4 -0
- package/package.json +59 -4
- package/react-native.config.js +12 -0
- package/src/bridge.ts +184 -0
- package/src/index.tsx +168 -0
- package/src/map-lifecycle.ts +11 -0
- package/src/models.ts +510 -0
- package/src/sdk.ts +732 -0
- package/src/specs/NativeRanaMaps.ts +16 -0
- package/src/specs/RanaMapViewNativeComponent.ts +10 -0
- package/src/specs/RanaMarkerViewNativeComponent.ts +9 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TurboModuleRegistry,
|
|
3
|
+
type TurboModule,
|
|
4
|
+
type CodegenTypes,
|
|
5
|
+
} from "react-native";
|
|
6
|
+
export interface Spec extends TurboModule {
|
|
7
|
+
execute(
|
|
8
|
+
requestId: string,
|
|
9
|
+
target: string,
|
|
10
|
+
method: string,
|
|
11
|
+
argumentsJson: string,
|
|
12
|
+
): Promise<string>;
|
|
13
|
+
cancel(requestId: string): void;
|
|
14
|
+
readonly onEvent: CodegenTypes.EventEmitter<string>;
|
|
15
|
+
}
|
|
16
|
+
export default TurboModuleRegistry.getEnforcing<Spec>("RanaMaps");
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ViewProps, CodegenTypes } from "react-native";
|
|
2
|
+
import { codegenNativeComponent } from "react-native";
|
|
3
|
+
export interface NativeProps extends ViewProps {
|
|
4
|
+
optionsJSON: string;
|
|
5
|
+
onMapError?: CodegenTypes.DirectEventHandler<Readonly<{ errorJSON: string }>>;
|
|
6
|
+
onMapCreated?: CodegenTypes.DirectEventHandler<
|
|
7
|
+
Readonly<{ mapId: string; ready: boolean }>
|
|
8
|
+
>;
|
|
9
|
+
}
|
|
10
|
+
export default codegenNativeComponent<NativeProps>("RanaMapView");
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ViewProps } from "react-native";
|
|
2
|
+
import { codegenNativeComponent } from "react-native";
|
|
3
|
+
export interface NativeProps extends ViewProps {
|
|
4
|
+
mapId: string;
|
|
5
|
+
positionJSON: string;
|
|
6
|
+
optionsJSON: string;
|
|
7
|
+
visible: boolean;
|
|
8
|
+
}
|
|
9
|
+
export default codegenNativeComponent<NativeProps>("RanaMarkerView");
|