react-native-maps 1.21.0-alpha.106 → 1.21.0-alpha.107

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.
@@ -0,0 +1,16 @@
1
+ //
2
+ // NSObject+DynamicLoad.h
3
+ // react-native-maps
4
+ //
5
+ // Created by Salah Ghanim on 16.03.25.
6
+ //
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ NS_ASSUME_NONNULL_BEGIN
11
+
12
+ @interface NSObject (DynamicLoad)
13
+
14
+ @end
15
+
16
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,33 @@
1
+ //
2
+ // NSObject+DynamicLoad.m
3
+ // react-native-maps
4
+ //
5
+ // Created by Salah Ghanim on 16.03.25.
6
+ //
7
+ #import <Foundation/Foundation.h>
8
+ #import <objc/runtime.h>
9
+ #import "NSObject+DynamicLoad.h"
10
+
11
+ @implementation NSObject (DynamicLoad)
12
+ + (void)load {
13
+ [self ensureClassExists:"RNMapsGoogleMapView"];
14
+ [self ensureClassExists:"RNMapsGooglePolygonView"];
15
+ }
16
+
17
+ + (void)ensureClassExists:(const char *)className {
18
+ // Check if the class exists
19
+ Class existingClass = objc_getClass(className);
20
+ if (!existingClass) {
21
+ // If the class does not exist, create a new class that is a subclass of NSObject
22
+ Class newClass = objc_allocateClassPair([NSObject class], className, 0);
23
+
24
+ // Register the new class with the runtime
25
+ objc_registerClassPair(newClass);
26
+
27
+ NSLog(@"Class %s created successfully.", className);
28
+ } else {
29
+ NSLog(@"Class %s already exists.", className);
30
+ }
31
+ }
32
+
33
+ @end
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "main": "lib/index.js",
6
6
  "author": "Leland Richardson <leland.m.richardson@gmail.com>",
7
7
  "homepage": "https://github.com/react-native-maps/react-native-maps#readme",
8
- "version": "1.21.0-alpha.106",
8
+ "version": "1.21.0-alpha.107",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",
@@ -1,26 +0,0 @@
1
- //
2
- // RNMapsGoogleMapView.h
3
- //
4
- //
5
- // Created by Salah Ghanim on 23.11.24.
6
- // Copyright © 2024 react-native-maps. All rights reserved.
7
- //
8
- #ifdef RCT_NEW_ARCH_ENABLED
9
- #ifndef HAVE_GOOGLE_MAPS
10
-
11
- #import <React/RCTViewComponentView.h>
12
- #import <UIKit/UIKit.h>
13
- #import "RNMapsHostVewDelegate.h"
14
-
15
-
16
-
17
- NS_ASSUME_NONNULL_BEGIN
18
-
19
- @interface RNMapsGoogleMapView : RCTViewComponentView
20
-
21
- @end
22
-
23
- NS_ASSUME_NONNULL_END
24
-
25
- #endif
26
- #endif
@@ -1,68 +0,0 @@
1
- //
2
- // RNMapsGoogleMapView.mm
3
- //
4
- //
5
- // Created by Salah Ghanim on 23.11.24.
6
- // Copyright © 2024 react-native-maps. All rights reserved.
7
- //
8
- #ifndef HAVE_GOOGLE_MAPS
9
-
10
-
11
-
12
- #import <react/renderer/components/RNMapsSpecs/ComponentDescriptors.h>
13
- #import <react/renderer/components/RNMapsSpecs/EventEmitters.h>
14
- #import <react/renderer/components/RNMapsSpecs/Props.h>
15
- #import <react/renderer/components/RNMapsSpecs/RCTComponentViewHelpers.h>
16
- #import "RCTFabricComponentsPlugins.h"
17
- #import <React/RCTConversions.h>
18
- #import "PlaceHolderGoogleMapView.h"
19
-
20
- using namespace facebook::react;
21
-
22
-
23
- @implementation RNMapsGoogleMapView
24
-
25
-
26
- #pragma mark - JS Commands
27
- - (void)animateToRegion:(NSString *)regionJSON duration:(NSInteger)duration{
28
- }
29
- - (void)setCamera:(NSString *)cameraJSON{
30
- }
31
-
32
- - (void)animateCamera:(NSString *)cameraJSON duration:(NSInteger)duration{
33
- }
34
-
35
- - (void)fitToElements:(NSString *)edgePaddingJSON animated:(BOOL)animated {
36
- }
37
-
38
- - (void)fitToSuppliedMarkers:(NSString *)markersJSON edgePaddingJSON:(NSString *)edgePaddingJSON animated:(BOOL)animated {
39
- }
40
- - (void)fitToCoordinates:(NSString *)coordinatesJSON edgePaddingJSON:(NSString *)edgePaddingJSON animated:(BOOL)animated {
41
-
42
- }
43
- - (void) setIndoorActiveLevelIndex:(NSInteger)activeLevelIndex
44
- {
45
-
46
- }
47
-
48
- #pragma mark - Native commands
49
-
50
- - (void)handleCommand:(const NSString *)commandName args:(const NSArray *)args
51
- {
52
- }
53
-
54
-
55
- + (ComponentDescriptorProvider)componentDescriptorProvider
56
- {
57
- return concreteComponentDescriptorProvider<RNMapsGoogleMapViewComponentDescriptor>();
58
- }
59
-
60
-
61
- @end
62
-
63
- Class<RCTComponentViewProtocol> RNMapsGoogleMapViewCls(void)
64
- {
65
- return RNMapsGoogleMapView.class;
66
- }
67
-
68
- #endif
@@ -1,23 +0,0 @@
1
- //
2
- // RNMapsGoogleMapView.h
3
- //
4
- //
5
- // Created by Salah Ghanim on 23.11.24.
6
- // Copyright © 2024 react-native-maps. All rights reserved.
7
- //
8
- #ifdef RCT_NEW_ARCH_ENABLED
9
- #ifndef HAVE_GOOGLE_MAPS
10
-
11
- #import <React/RCTViewComponentView.h>
12
- #import <UIKit/UIKit.h>
13
-
14
-
15
- NS_ASSUME_NONNULL_BEGIN
16
- @interface RNMapsGooglePolygonView : RCTViewComponentView
17
-
18
- @end
19
-
20
- NS_ASSUME_NONNULL_END
21
-
22
- #endif
23
- #endif
@@ -1,43 +0,0 @@
1
- //
2
- // RNMapsGoogleMapView.mm
3
- //
4
- //
5
- // Created by Salah Ghanim on 23.11.24.
6
- // Copyright © 2024 react-native-maps. All rights reserved.
7
- //
8
- #ifndef HAVE_GOOGLE_MAPS
9
-
10
-
11
-
12
- #import <react/renderer/components/RNMapsSpecs/ComponentDescriptors.h>
13
- #import <react/renderer/components/RNMapsSpecs/EventEmitters.h>
14
- #import <react/renderer/components/RNMapsSpecs/Props.h>
15
- #import <react/renderer/components/RNMapsSpecs/RCTComponentViewHelpers.h>
16
-
17
- #import "RCTFabricComponentsPlugins.h"
18
- #import <React/RCTConversions.h>
19
- #import "PlaceHolderPolygonView.h"
20
-
21
- using namespace facebook::react;
22
-
23
-
24
- @interface RNMapsGooglePolygonView () <RCTRNMapsGooglePolygonViewProtocol>
25
- @end
26
-
27
- @implementation RNMapsGooglePolygonView
28
-
29
-
30
-
31
- + (ComponentDescriptorProvider)componentDescriptorProvider
32
- {
33
- return concreteComponentDescriptorProvider<RNMapsGooglePolygonComponentDescriptor>();
34
- }
35
-
36
- @end
37
-
38
- Class<RCTComponentViewProtocol> RNMapsGooglePolygonCls(void)
39
- {
40
- return RNMapsGooglePolygonView.class;
41
- }
42
-
43
- #endif