react-native-maps 1.21.0-alpha.112 → 1.21.0-alpha.113

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.
Files changed (40) hide show
  1. package/ios/AirGoogleMaps/RNMapsGoogleMapView.mm +4 -4
  2. package/ios/AirGoogleMaps/RNMapsGooglePolygonView.mm +5 -5
  3. package/ios/AirMaps/RNMapsAirModule.h +1 -1
  4. package/ios/AirMaps/RNMapsMapView.mm +4 -4
  5. package/ios/AirMaps/RNMapsMarkerView.mm +4 -4
  6. package/ios/generated/RCTAppDependencyProvider.h +25 -0
  7. package/ios/generated/RCTAppDependencyProvider.mm +55 -0
  8. package/ios/generated/RCTModulesConformingToProtocolsProvider.h +18 -0
  9. package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +33 -0
  10. package/ios/generated/RCTThirdPartyComponentsProvider.h +16 -0
  11. package/ios/generated/RCTThirdPartyComponentsProvider.mm +26 -0
  12. package/ios/generated/RNMapsSpecs/ComponentDescriptors.cpp +29 -0
  13. package/ios/generated/RNMapsSpecs/ComponentDescriptors.h +31 -0
  14. package/ios/generated/RNMapsSpecs/EventEmitters.cpp +977 -0
  15. package/ios/generated/RNMapsSpecs/EventEmitters.h +846 -0
  16. package/ios/generated/RNMapsSpecs/Props.cpp +193 -0
  17. package/ios/generated/RNMapsSpecs/Props.h +1223 -0
  18. package/ios/generated/RNMapsSpecs/RCTComponentViewHelpers.h +603 -0
  19. package/ios/generated/RNMapsSpecs/RNMapsSpecs-generated.mm +92 -0
  20. package/ios/generated/RNMapsSpecs/RNMapsSpecs.h +137 -0
  21. package/ios/generated/RNMapsSpecs/ShadowNodes.cpp +24 -0
  22. package/ios/generated/RNMapsSpecs/ShadowNodes.h +109 -0
  23. package/ios/generated/RNMapsSpecs/States.cpp +16 -0
  24. package/ios/generated/RNMapsSpecs/States.h +113 -0
  25. package/ios/generated/RNMapsSpecsJSI-generated.cpp +74 -0
  26. package/ios/generated/RNMapsSpecsJSI.h +268 -0
  27. package/ios/generated/ReactAppDependencyProvider.podspec +34 -0
  28. package/package.json +9 -5
  29. package/react-native-google-maps.podspec +1 -0
  30. package/react-native-maps-generated.podspec +31 -0
  31. package/react-native-maps.podspec +1 -1
  32. package/specs/NativeAirMapsModule.ts +0 -36
  33. package/specs/NativeComponentCallout.ts +0 -63
  34. package/specs/NativeComponentCircle.ts +0 -94
  35. package/specs/NativeComponentGoogleMapView.ts +0 -913
  36. package/specs/NativeComponentGooglePolygon.ts +0 -94
  37. package/specs/NativeComponentMapView.ts +0 -1059
  38. package/specs/NativeComponentMarker.ts +0 -326
  39. package/specs/NativeComponentOverlay.ts +0 -89
  40. package/specs/NativeComponentPolyline.ts +0 -124
@@ -12,10 +12,10 @@
12
12
  #import "AIRGoogleMap.h"
13
13
  #import "AIRMapMarker.h"
14
14
  #import "AIRGoogleMapManager.h"
15
- #import <react/renderer/components/RNMapsSpecs/ComponentDescriptors.h>
16
- #import <react/renderer/components/RNMapsSpecs/EventEmitters.h>
17
- #import <react/renderer/components/RNMapsSpecs/Props.h>
18
- #import <react/renderer/components/RNMapsSpecs/RCTComponentViewHelpers.h>
15
+ #import <react-native-maps-generated/ComponentDescriptors.h>
16
+ #import <react-native-maps-generated/EventEmitters.h>
17
+ #import <react-native-maps-generated/Props.h>
18
+ #import <react-native-maps-generated/RCTComponentViewHelpers.h>
19
19
  #import "RCTFabricComponentsPlugins.h"
20
20
  #import <React/RCTConversions.h>
21
21
  #import <React/RCTUtils.h>
@@ -10,11 +10,11 @@
10
10
  #import "RNMapsGooglePolygonView.h"
11
11
  #import "AIRGMSPolygon.h"
12
12
  #import "AIRGoogleMap.h"
13
-
14
- #import <react/renderer/components/RNMapsSpecs/ComponentDescriptors.h>
15
- #import <react/renderer/components/RNMapsSpecs/EventEmitters.h>
16
- #import <react/renderer/components/RNMapsSpecs/Props.h>
17
- #import <react/renderer/components/RNMapsSpecs/RCTComponentViewHelpers.h>
13
+ #import <react-native-maps-generated/RNMapsSpecs.h>
14
+ #import <react-native-maps-generated/ComponentDescriptors.h>
15
+ #import <react-native-maps-generated/EventEmitters.h>
16
+ #import <react-native-maps-generated/Props.h>
17
+ #import <react-native-maps-generated/RCTComponentViewHelpers.h>
18
18
 
19
19
  #import "RCTFabricComponentsPlugins.h"
20
20
  #import <React/RCTConversions.h>
@@ -3,7 +3,7 @@
3
3
  #ifdef RCT_NEW_ARCH_ENABLED
4
4
 
5
5
  #import <Foundation/Foundation.h>
6
- #import <ReactCodegen/RNMapsSpecs/RNMapsSpecs.h>
6
+ #import <react-native-maps-generated/RNMapsSpecs.h>
7
7
 
8
8
  NS_ASSUME_NONNULL_BEGIN
9
9
 
@@ -11,10 +11,10 @@
11
11
  #import "AIRMapMarker.h"
12
12
  #import "AIRMapManager.h"
13
13
  #import "RNMapsMarkerView.h"
14
- #import <react/renderer/components/RNMapsSpecs/ComponentDescriptors.h>
15
- #import <react/renderer/components/RNMapsSpecs/EventEmitters.h>
16
- #import <react/renderer/components/RNMapsSpecs/Props.h>
17
- #import <react/renderer/components/RNMapsSpecs/RCTComponentViewHelpers.h>
14
+ #import <react-native-maps-generated/EventEmitters.h>
15
+ #import <react-native-maps-generated/ComponentDescriptors.h>
16
+ #import <react-native-maps-generated/Props.h>
17
+ #import <react-native-maps-generated/RCTComponentViewHelpers.h>
18
18
  #import "RCTFabricComponentsPlugins.h"
19
19
  #import <React/RCTConversions.h>
20
20
  #import "UIView+AirMap.h"
@@ -10,10 +10,10 @@
10
10
  #import "AIRMap.h"
11
11
  #import "AIRMapMarker.h"
12
12
  #import "AIRMapMarkerManager.h"
13
- #import <react/renderer/components/RNMapsSpecs/ComponentDescriptors.h>
14
- #import <react/renderer/components/RNMapsSpecs/EventEmitters.h>
15
- #import <react/renderer/components/RNMapsSpecs/Props.h>
16
- #import <react/renderer/components/RNMapsSpecs/RCTComponentViewHelpers.h>
13
+ #import <react-native-maps-generated/ComponentDescriptors.h>
14
+ #import <react-native-maps-generated/EventEmitters.h>
15
+ #import <react-native-maps-generated/Props.h>
16
+ #import <react-native-maps-generated/RCTComponentViewHelpers.h>
17
17
  #import "RCTFabricComponentsPlugins.h"
18
18
  #import <React/RCTConversions.h>
19
19
  #import "UIView+AirMap.h"
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ #if __has_include(<React-RCTAppDelegate/RCTDependencyProvider.h>)
12
+ #import <React-RCTAppDelegate/RCTDependencyProvider.h>
13
+ #elif __has_include(<React_RCTAppDelegate/RCTDependencyProvider.h>)
14
+ #import <React_RCTAppDelegate/RCTDependencyProvider.h>
15
+ #else
16
+ #import "RCTDependencyProvider.h"
17
+ #endif
18
+
19
+ NS_ASSUME_NONNULL_BEGIN
20
+
21
+ @interface RCTAppDependencyProvider : NSObject <RCTDependencyProvider>
22
+
23
+ @end
24
+
25
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #import "RCTAppDependencyProvider.h"
9
+ #import <ReactCodegen/RCTModulesConformingToProtocolsProvider.h>
10
+ #import <ReactCodegen/RCTThirdPartyComponentsProvider.h>
11
+
12
+ @implementation RCTAppDependencyProvider {
13
+ NSArray<NSString *> * _URLRequestHandlerClassNames;
14
+ NSArray<NSString *> * _imageDataDecoderClassNames;
15
+ NSArray<NSString *> * _imageURLLoaderClassNames;
16
+ NSDictionary<NSString *,Class<RCTComponentViewProtocol>> * _thirdPartyFabricComponents;
17
+ }
18
+
19
+ - (nonnull NSArray<NSString *> *)URLRequestHandlerClassNames {
20
+ static dispatch_once_t requestUrlToken;
21
+ dispatch_once(&requestUrlToken, ^{
22
+ self->_URLRequestHandlerClassNames = RCTModulesConformingToProtocolsProvider.URLRequestHandlerClassNames;
23
+ });
24
+
25
+ return _URLRequestHandlerClassNames;
26
+ }
27
+
28
+ - (nonnull NSArray<NSString *> *)imageDataDecoderClassNames {
29
+ static dispatch_once_t dataDecoderToken;
30
+ dispatch_once(&dataDecoderToken, ^{
31
+ _imageDataDecoderClassNames = RCTModulesConformingToProtocolsProvider.imageDataDecoderClassNames;
32
+ });
33
+
34
+ return _imageDataDecoderClassNames;
35
+ }
36
+
37
+ - (nonnull NSArray<NSString *> *)imageURLLoaderClassNames {
38
+ static dispatch_once_t urlLoaderToken;
39
+ dispatch_once(&urlLoaderToken, ^{
40
+ _imageURLLoaderClassNames = RCTModulesConformingToProtocolsProvider.imageURLLoaderClassNames;
41
+ });
42
+
43
+ return _imageURLLoaderClassNames;
44
+ }
45
+
46
+ - (nonnull NSDictionary<NSString *,Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents {
47
+ static dispatch_once_t nativeComponentsToken;
48
+ dispatch_once(&nativeComponentsToken, ^{
49
+ _thirdPartyFabricComponents = RCTThirdPartyComponentsProvider.thirdPartyFabricComponents;
50
+ });
51
+
52
+ return _thirdPartyFabricComponents;
53
+ }
54
+
55
+ @end
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ @interface RCTModulesConformingToProtocolsProvider: NSObject
11
+
12
+ +(NSArray<NSString *> *)imageURLLoaderClassNames;
13
+
14
+ +(NSArray<NSString *> *)imageDataDecoderClassNames;
15
+
16
+ +(NSArray<NSString *> *)URLRequestHandlerClassNames;
17
+
18
+ @end
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #import "RCTModulesConformingToProtocolsProvider.h"
9
+
10
+ @implementation RCTModulesConformingToProtocolsProvider
11
+
12
+ +(NSArray<NSString *> *)imageURLLoaderClassNames
13
+ {
14
+ return @[
15
+
16
+ ];
17
+ }
18
+
19
+ +(NSArray<NSString *> *)imageDataDecoderClassNames
20
+ {
21
+ return @[
22
+
23
+ ];
24
+ }
25
+
26
+ +(NSArray<NSString *> *)URLRequestHandlerClassNames
27
+ {
28
+ return @[
29
+
30
+ ];
31
+ }
32
+
33
+ @end
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ #import <Foundation/Foundation.h>
9
+
10
+ @protocol RCTComponentViewProtocol;
11
+
12
+ @interface RCTThirdPartyComponentsProvider: NSObject
13
+
14
+ + (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents;
15
+
16
+ @end
@@ -0,0 +1,26 @@
1
+ /*
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ #import "RCTThirdPartyComponentsProvider.h"
12
+ #import <React/RCTComponentViewProtocol.h>
13
+
14
+ @implementation RCTThirdPartyComponentsProvider
15
+
16
+ + (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents
17
+ {
18
+ return @{
19
+ @"RNMapsGoogleMapView": NSClassFromString(@"RNMapsGoogleMapView"), // react-native-maps
20
+ @"RNMapsGooglePolygon": NSClassFromString(@"RNMapsGooglePolygonView"), // react-native-maps
21
+ @"RNMapsMapView": NSClassFromString(@"RNMapsMapView"), // react-native-maps
22
+ @"RNMapsMarker": NSClassFromString(@"RNMapsMarkerView"), // react-native-maps
23
+ };
24
+ }
25
+
26
+ @end
@@ -0,0 +1,29 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateComponentDescriptorCpp.js
9
+ */
10
+
11
+ #include "ComponentDescriptors.h"
12
+ #include <react/renderer/core/ConcreteComponentDescriptor.h>
13
+ #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
14
+
15
+ namespace facebook::react {
16
+
17
+ void RNMapsSpecs_registerComponentDescriptorsFromCodegen(
18
+ std::shared_ptr<const ComponentDescriptorProviderRegistry> registry) {
19
+ registry->add(concreteComponentDescriptorProvider<RNMapsCalloutComponentDescriptor>());
20
+ registry->add(concreteComponentDescriptorProvider<RNMapsCircleComponentDescriptor>());
21
+ registry->add(concreteComponentDescriptorProvider<RNMapsGoogleMapViewComponentDescriptor>());
22
+ registry->add(concreteComponentDescriptorProvider<RNMapsGooglePolygonComponentDescriptor>());
23
+ registry->add(concreteComponentDescriptorProvider<RNMapsMapViewComponentDescriptor>());
24
+ registry->add(concreteComponentDescriptorProvider<RNMapsMarkerComponentDescriptor>());
25
+ registry->add(concreteComponentDescriptorProvider<RNMapsOverlayComponentDescriptor>());
26
+ registry->add(concreteComponentDescriptorProvider<RNMapsPolylineComponentDescriptor>());
27
+ }
28
+
29
+ } // namespace facebook::react
@@ -0,0 +1,31 @@
1
+
2
+ /**
3
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
+ *
5
+ * Do not edit this file as changes may cause incorrect behavior and will be lost
6
+ * once the code is regenerated.
7
+ *
8
+ * @generated by codegen project: GenerateComponentDescriptorH.js
9
+ */
10
+
11
+ #pragma once
12
+
13
+ #include "ShadowNodes.h"
14
+ #include <react/renderer/core/ConcreteComponentDescriptor.h>
15
+ #include <react/renderer/componentregistry/ComponentDescriptorProviderRegistry.h>
16
+
17
+ namespace facebook::react {
18
+
19
+ using RNMapsCalloutComponentDescriptor = ConcreteComponentDescriptor<RNMapsCalloutShadowNode>;
20
+ using RNMapsCircleComponentDescriptor = ConcreteComponentDescriptor<RNMapsCircleShadowNode>;
21
+ using RNMapsGoogleMapViewComponentDescriptor = ConcreteComponentDescriptor<RNMapsGoogleMapViewShadowNode>;
22
+ using RNMapsGooglePolygonComponentDescriptor = ConcreteComponentDescriptor<RNMapsGooglePolygonShadowNode>;
23
+ using RNMapsMapViewComponentDescriptor = ConcreteComponentDescriptor<RNMapsMapViewShadowNode>;
24
+ using RNMapsMarkerComponentDescriptor = ConcreteComponentDescriptor<RNMapsMarkerShadowNode>;
25
+ using RNMapsOverlayComponentDescriptor = ConcreteComponentDescriptor<RNMapsOverlayShadowNode>;
26
+ using RNMapsPolylineComponentDescriptor = ConcreteComponentDescriptor<RNMapsPolylineShadowNode>;
27
+
28
+ void RNMapsSpecs_registerComponentDescriptorsFromCodegen(
29
+ std::shared_ptr<const ComponentDescriptorProviderRegistry> registry);
30
+
31
+ } // namespace facebook::react