react-native-maps 1.21.0-alpha.92 → 1.21.0-alpha.94

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 (71) hide show
  1. package/ios/AirGoogleMaps/RNMapsGoogleMapView.mm +4 -1
  2. package/ios/AirGoogleMaps/RNMapsGooglePolygonView.mm +4 -2
  3. package/ios/AirMaps/RNMapsAirModule.h +1 -1
  4. package/ios/AirMaps/RNMapsMapView.mm +4 -1
  5. package/ios/AirMaps/RNMapsMarkerView.mm +4 -1
  6. package/lib/MapMarker.js +11 -12
  7. package/lib/MapOverlay.js +4 -14
  8. package/lib/fixImageProp.d.ts +4 -0
  9. package/lib/fixImageProp.js +16 -0
  10. package/package.json +1 -2
  11. package/android/generated/RCTAppDependencyProvider.h +0 -25
  12. package/android/generated/RCTAppDependencyProvider.mm +0 -55
  13. package/android/generated/RCTModulesConformingToProtocolsProvider.h +0 -18
  14. package/android/generated/RCTModulesConformingToProtocolsProvider.mm +0 -33
  15. package/android/generated/RCTThirdPartyComponentsProvider.h +0 -16
  16. package/android/generated/RCTThirdPartyComponentsProvider.mm +0 -26
  17. package/android/generated/ReactAppDependencyProvider.podspec +0 -34
  18. package/android/generated/java/com/facebook/fbreact/specs/NativeAirMapsModuleSpec.java +0 -63
  19. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerDelegate.java +0 -35
  20. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsCalloutManagerInterface.java +0 -18
  21. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsCircleManagerDelegate.java +0 -49
  22. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsCircleManagerInterface.java +0 -24
  23. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsGooglePolygonManagerDelegate.java +0 -49
  24. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsGooglePolygonManagerInterface.java +0 -24
  25. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerDelegate.java +0 -206
  26. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMapViewManagerInterface.java +0 -74
  27. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerDelegate.java +0 -104
  28. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsMarkerManagerInterface.java +0 -40
  29. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsOverlayManagerDelegate.java +0 -46
  30. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsOverlayManagerInterface.java +0 -24
  31. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsPolylineManagerDelegate.java +0 -58
  32. package/android/generated/java/com/facebook/react/viewmanagers/RNMapsPolylineManagerInterface.java +0 -27
  33. package/android/generated/jni/CMakeLists.txt +0 -36
  34. package/android/generated/jni/RNMapsSpecs-generated.cpp +0 -68
  35. package/android/generated/jni/RNMapsSpecs.h +0 -31
  36. package/android/generated/jni/react/renderer/components/RNMapsSpecs/ComponentDescriptors.cpp +0 -29
  37. package/android/generated/jni/react/renderer/components/RNMapsSpecs/ComponentDescriptors.h +0 -31
  38. package/android/generated/jni/react/renderer/components/RNMapsSpecs/EventEmitters.cpp +0 -984
  39. package/android/generated/jni/react/renderer/components/RNMapsSpecs/EventEmitters.h +0 -853
  40. package/android/generated/jni/react/renderer/components/RNMapsSpecs/Props.cpp +0 -193
  41. package/android/generated/jni/react/renderer/components/RNMapsSpecs/Props.h +0 -1223
  42. package/android/generated/jni/react/renderer/components/RNMapsSpecs/RNMapsSpecsJSI-generated.cpp +0 -74
  43. package/android/generated/jni/react/renderer/components/RNMapsSpecs/RNMapsSpecsJSI.h +0 -268
  44. package/android/generated/jni/react/renderer/components/RNMapsSpecs/ShadowNodes.cpp +0 -24
  45. package/android/generated/jni/react/renderer/components/RNMapsSpecs/ShadowNodes.h +0 -109
  46. package/android/generated/jni/react/renderer/components/RNMapsSpecs/States.cpp +0 -16
  47. package/android/generated/jni/react/renderer/components/RNMapsSpecs/States.h +0 -113
  48. package/ios/generated/RCTAppDependencyProvider.h +0 -25
  49. package/ios/generated/RCTAppDependencyProvider.mm +0 -55
  50. package/ios/generated/RCTModulesConformingToProtocolsProvider.h +0 -18
  51. package/ios/generated/RCTModulesConformingToProtocolsProvider.mm +0 -33
  52. package/ios/generated/RCTThirdPartyComponentsProvider.h +0 -16
  53. package/ios/generated/RCTThirdPartyComponentsProvider.mm +0 -26
  54. package/ios/generated/RNMapsSpecs/ComponentDescriptors.cpp +0 -29
  55. package/ios/generated/RNMapsSpecs/ComponentDescriptors.h +0 -31
  56. package/ios/generated/RNMapsSpecs/EventEmitters.cpp +0 -984
  57. package/ios/generated/RNMapsSpecs/EventEmitters.h +0 -853
  58. package/ios/generated/RNMapsSpecs/Props.cpp +0 -193
  59. package/ios/generated/RNMapsSpecs/Props.h +0 -1223
  60. package/ios/generated/RNMapsSpecs/RCTComponentViewHelpers.h +0 -603
  61. package/ios/generated/RNMapsSpecs/RNMapsSpecs-generated.mm +0 -92
  62. package/ios/generated/RNMapsSpecs/RNMapsSpecs.h +0 -137
  63. package/ios/generated/RNMapsSpecs/ShadowNodes.cpp +0 -24
  64. package/ios/generated/RNMapsSpecs/ShadowNodes.h +0 -109
  65. package/ios/generated/RNMapsSpecs/States.cpp +0 -16
  66. package/ios/generated/RNMapsSpecs/States.h +0 -113
  67. package/ios/generated/RNMapsSpecsJSI-generated.cpp +0 -74
  68. package/ios/generated/RNMapsSpecsJSI.h +0 -268
  69. package/ios/generated/ReactAppDependencyProvider.podspec +0 -34
  70. package/ios/generated/module.modulemap +0 -4
  71. package/ios/generated/react-native-maps-generated-umbrella.h +0 -14
@@ -12,7 +12,10 @@
12
12
  #import "AIRGoogleMap.h"
13
13
  #import "AIRMapMarker.h"
14
14
  #import "AIRGoogleMapManager.h"
15
- #import "react-native-maps-generated-umbrella.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>
16
19
  #import "RCTFabricComponentsPlugins.h"
17
20
  #import <React/RCTConversions.h>
18
21
  #import "RCTConvert+GMSMapViewType.h"
@@ -11,8 +11,10 @@
11
11
  #import "AIRGMSPolygon.h"
12
12
  #import "AIRGoogleMap.h"
13
13
 
14
- #import "react-native-maps-generated-umbrella.h"
15
-
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>
16
18
 
17
19
  #import "RCTFabricComponentsPlugins.h"
18
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 "react-native-maps-generated-umbrella.h"
6
+ #import <ReactCodegen/RNMapsSpecs/RNMapsSpecs.h>
7
7
 
8
8
  NS_ASSUME_NONNULL_BEGIN
9
9
 
@@ -11,7 +11,10 @@
11
11
  #import "AIRMapMarker.h"
12
12
  #import "AIRMapManager.h"
13
13
  #import "RNMapsMarkerView.h"
14
- #import "react-native-maps-generated-umbrella.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>
15
18
  #import "RCTFabricComponentsPlugins.h"
16
19
  #import <React/RCTConversions.h>
17
20
  #import "UIView+AirMap.h"
@@ -10,7 +10,10 @@
10
10
  #import "AIRMap.h"
11
11
  #import "AIRMapMarker.h"
12
12
  #import "AIRMapMarkerManager.h"
13
- #import "react-native-maps-generated-umbrella.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>
14
17
  #import "RCTFabricComponentsPlugins.h"
15
18
  #import <React/RCTConversions.h>
16
19
  #import "UIView+AirMap.h"
package/lib/MapMarker.js CHANGED
@@ -30,6 +30,7 @@ const decorateMapComponent_1 = __importStar(require("./decorateMapComponent"));
30
30
  const MapMarkerNativeComponent_1 = require("./MapMarkerNativeComponent");
31
31
  const NativeComponentMarker_1 = require("./specs/NativeComponentMarker");
32
32
  const ProviderConstants_1 = require("./ProviderConstants");
33
+ const fixImageProp_1 = require("./fixImageProp");
33
34
  class MapMarker extends React.Component {
34
35
  getNativeComponent;
35
36
  getMapManagerCommand;
@@ -116,30 +117,28 @@ class MapMarker extends React.Component {
116
117
  const { stopPropagation = false } = this.props;
117
118
  if (this.fabricMarker === undefined) {
118
119
  const provider = this.context;
119
- this.fabricMarker = !(react_native_1.Platform.OS === 'ios' && provider !== ProviderConstants_1.PROVIDER_GOOGLE);
120
+ this.fabricMarker = !(react_native_1.Platform.OS === 'ios' && provider === ProviderConstants_1.PROVIDER_GOOGLE);
120
121
  }
121
122
  let icon;
122
123
  if (this.props.icon) {
123
124
  icon = react_native_1.Image.resolveAssetSource(this.props.icon) || {};
124
125
  icon = icon.uri;
126
+ if (this.fabricMarker) {
127
+ icon = (0, fixImageProp_1.fixImageProp)(this.props.icon);
128
+ }
125
129
  }
126
130
  const AIRMapMarker = this.getNativeComponent();
127
131
  let image;
128
132
  if (this.props.image) {
129
133
  if (this.fabricMarker) {
130
- if (typeof this.props.image === 'string') {
131
- image = { uri: this.props.image };
132
- }
133
- else {
134
- image = this.props.image;
135
- }
136
- }
137
- else {
138
- const resolvedImage = react_native_1.Image.resolveAssetSource(this.props.image) || {};
139
- image = resolvedImage.uri || this.props.image;
134
+ image = (0, fixImageProp_1.fixImageProp)(this.props.image);
140
135
  }
141
136
  }
142
- return (<AIRMapMarker {...this.props} ref={this.marker} image={image} icon={icon} style={[styles.marker, this.props.style]} onPress={event => {
137
+ return (<AIRMapMarker {...this.props} ref={this.marker}
138
+ // @ts-ignore
139
+ image={image}
140
+ // @ts-ignore
141
+ icon={icon} style={[styles.marker, this.props.style]} onPress={event => {
143
142
  if (stopPropagation) {
144
143
  event.stopPropagation();
145
144
  }
package/lib/MapOverlay.js CHANGED
@@ -27,6 +27,7 @@ exports.MapOverlay = void 0;
27
27
  const React = __importStar(require("react"));
28
28
  const react_native_1 = require("react-native");
29
29
  const decorateMapComponent_1 = __importStar(require("./decorateMapComponent"));
30
+ const fixImageProp_1 = require("./fixImageProp");
30
31
  class MapOverlay extends React.Component {
31
32
  getNativeComponent;
32
33
  getMapManagerCommand;
@@ -39,20 +40,9 @@ class MapOverlay extends React.Component {
39
40
  this.fabricOverlay = react_native_1.Platform.OS === 'android';
40
41
  }
41
42
  const AIRMapOverlay = this.getNativeComponent();
42
- let image;
43
- if (this.props.image) {
44
- if (this.fabricOverlay) {
45
- if (typeof this.props.image === 'string') {
46
- image = { uri: this.props.image };
47
- }
48
- else {
49
- image = this.props.image;
50
- }
51
- }
52
- else {
53
- const resolvedImage = react_native_1.Image.resolveAssetSource(this.props.image) || {};
54
- image = resolvedImage.uri || this.props.image;
55
- }
43
+ let image = this.props.image;
44
+ if (this.props.image && this.fabricOverlay) {
45
+ image = (0, fixImageProp_1.fixImageProp)(this.props.image);
56
46
  }
57
47
  return (<AIRMapOverlay {...this.props} opacity={opacity}
58
48
  // @ts-ignore
@@ -0,0 +1,4 @@
1
+ import { ImageSourcePropType } from 'react-native';
2
+ export declare function fixImageProp(image: ImageSourcePropType): {
3
+ uri: string;
4
+ } | ImageSourcePropType;
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.fixImageProp = void 0;
4
+ const react_native_1 = require("react-native");
5
+ function fixImageProp(image) {
6
+ if (typeof image === 'string') {
7
+ return { uri: image };
8
+ }
9
+ if (typeof image === 'number') {
10
+ // Handle local image asset (require('./image.png'))
11
+ const resolvedImage = react_native_1.Image.resolveAssetSource(image);
12
+ return resolvedImage?.uri ? { uri: resolvedImage.uri } : image;
13
+ }
14
+ return image;
15
+ }
16
+ exports.fixImageProp = fixImageProp;
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.92",
8
+ "version": "1.21.0-alpha.94",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",
@@ -99,7 +99,6 @@
99
99
  "ios": "ios/generated",
100
100
  "android": "android/generated"
101
101
  },
102
- "includesGeneratedCode": true,
103
102
  "android": {
104
103
  "javaPackageName": "com.rnmaps.fabric"
105
104
  }
@@ -1,25 +0,0 @@
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
@@ -1,55 +0,0 @@
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
@@ -1,18 +0,0 @@
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
@@ -1,33 +0,0 @@
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
@@ -1,16 +0,0 @@
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
@@ -1,26 +0,0 @@
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
@@ -1,34 +0,0 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- #
3
- # This source code is licensed under the MIT license found in the
4
- # LICENSE file in the root directory of this source tree.
5
-
6
- version = "0.78.0"
7
- source = { :git => 'https://github.com/facebook/react-native.git' }
8
- if version == '1000.0.0'
9
- # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
10
- source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
11
- else
12
- source[:tag] = "v#{version}"
13
- end
14
-
15
- Pod::Spec.new do |s|
16
- s.name = "ReactAppDependencyProvider"
17
- s.version = version
18
- s.summary = "The third party dependency provider for the app"
19
- s.homepage = "https://reactnative.dev/"
20
- s.documentation_url = "https://reactnative.dev/"
21
- s.license = "MIT"
22
- s.author = "Meta Platforms, Inc. and its affiliates"
23
- s.platforms = min_supported_versions
24
- s.source = source
25
- s.source_files = "**/RCTAppDependencyProvider.{h,mm}"
26
-
27
- # This guard prevent to install the dependencies when we run `pod install` in the old architecture.
28
- s.pod_target_xcconfig = {
29
- "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
30
- "DEFINES_MODULE" => "YES"
31
- }
32
-
33
- s.dependency "ReactCodegen"
34
- end
@@ -1,63 +0,0 @@
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: GenerateModuleJavaSpec.js
9
- *
10
- * @nolint
11
- */
12
-
13
- package com.facebook.fbreact.specs;
14
-
15
- import com.facebook.proguard.annotations.DoNotStrip;
16
- import com.facebook.react.bridge.Promise;
17
- import com.facebook.react.bridge.ReactApplicationContext;
18
- import com.facebook.react.bridge.ReactContextBaseJavaModule;
19
- import com.facebook.react.bridge.ReactMethod;
20
- import com.facebook.react.bridge.ReadableMap;
21
- import com.facebook.react.turbomodule.core.interfaces.TurboModule;
22
- import javax.annotation.Nonnull;
23
-
24
- public abstract class NativeAirMapsModuleSpec extends ReactContextBaseJavaModule implements TurboModule {
25
- public static final String NAME = "RNMapsAirModule";
26
-
27
- public NativeAirMapsModuleSpec(ReactApplicationContext reactContext) {
28
- super(reactContext);
29
- }
30
-
31
- @Override
32
- public @Nonnull String getName() {
33
- return NAME;
34
- }
35
-
36
- @ReactMethod
37
- @DoNotStrip
38
- public abstract void getCamera(double tag, Promise promise);
39
-
40
- @ReactMethod
41
- @DoNotStrip
42
- public abstract void getMarkersFrames(double tag, boolean onlyVisible, Promise promise);
43
-
44
- @ReactMethod
45
- @DoNotStrip
46
- public abstract void getMapBoundaries(double tag, Promise promise);
47
-
48
- @ReactMethod
49
- @DoNotStrip
50
- public abstract void takeSnapshot(double tag, String config, Promise promise);
51
-
52
- @ReactMethod
53
- @DoNotStrip
54
- public abstract void getAddressFromCoordinates(double tag, ReadableMap coordinate, Promise promise);
55
-
56
- @ReactMethod
57
- @DoNotStrip
58
- public abstract void getPointForCoordinate(double tag, ReadableMap coordinate, Promise promise);
59
-
60
- @ReactMethod
61
- @DoNotStrip
62
- public abstract void getCoordinateForPoint(double tag, ReadableMap point, Promise promise);
63
- }
@@ -1,35 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GeneratePropsJavaDelegate.js
8
- */
9
-
10
- package com.facebook.react.viewmanagers;
11
-
12
- import android.view.View;
13
- import androidx.annotation.Nullable;
14
- import com.facebook.react.uimanager.BaseViewManager;
15
- import com.facebook.react.uimanager.BaseViewManagerDelegate;
16
- import com.facebook.react.uimanager.LayoutShadowNode;
17
-
18
- public class RNMapsCalloutManagerDelegate<T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & RNMapsCalloutManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
19
- public RNMapsCalloutManagerDelegate(U viewManager) {
20
- super(viewManager);
21
- }
22
- @Override
23
- public void setProperty(T view, String propName, @Nullable Object value) {
24
- switch (propName) {
25
- case "alphaHitTest":
26
- mViewManager.setAlphaHitTest(view, value == null ? false : (boolean) value);
27
- break;
28
- case "tooltip":
29
- mViewManager.setTooltip(view, value == null ? false : (boolean) value);
30
- break;
31
- default:
32
- super.setProperty(view, propName, value);
33
- }
34
- }
35
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GeneratePropsJavaInterface.js
8
- */
9
-
10
- package com.facebook.react.viewmanagers;
11
-
12
- import android.view.View;
13
- import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface;
14
-
15
- public interface RNMapsCalloutManagerInterface<T extends View> extends ViewManagerWithGeneratedInterface {
16
- void setAlphaHitTest(T view, boolean value);
17
- void setTooltip(T view, boolean value);
18
- }
@@ -1,49 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GeneratePropsJavaDelegate.js
8
- */
9
-
10
- package com.facebook.react.viewmanagers;
11
-
12
- import android.view.View;
13
- import androidx.annotation.Nullable;
14
- import com.facebook.react.bridge.ColorPropConverter;
15
- import com.facebook.react.bridge.ReadableMap;
16
- import com.facebook.react.uimanager.BaseViewManager;
17
- import com.facebook.react.uimanager.BaseViewManagerDelegate;
18
- import com.facebook.react.uimanager.LayoutShadowNode;
19
-
20
- public class RNMapsCircleManagerDelegate<T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & RNMapsCircleManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
21
- public RNMapsCircleManagerDelegate(U viewManager) {
22
- super(viewManager);
23
- }
24
- @Override
25
- public void setProperty(T view, String propName, @Nullable Object value) {
26
- switch (propName) {
27
- case "center":
28
- mViewManager.setCenter(view, (ReadableMap) value);
29
- break;
30
- case "fillColor":
31
- mViewManager.setFillColor(view, ColorPropConverter.getColor(value, view.getContext()));
32
- break;
33
- case "radius":
34
- mViewManager.setRadius(view, value == null ? Double.NaN : ((Double) value).doubleValue());
35
- break;
36
- case "strokeColor":
37
- mViewManager.setStrokeColor(view, ColorPropConverter.getColor(value, view.getContext()));
38
- break;
39
- case "strokeWidth":
40
- mViewManager.setStrokeWidth(view, value == null ? 0f : ((Double) value).floatValue());
41
- break;
42
- case "tappable":
43
- mViewManager.setTappable(view, value == null ? false : (boolean) value);
44
- break;
45
- default:
46
- super.setProperty(view, propName, value);
47
- }
48
- }
49
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GeneratePropsJavaInterface.js
8
- */
9
-
10
- package com.facebook.react.viewmanagers;
11
-
12
- import android.view.View;
13
- import androidx.annotation.Nullable;
14
- import com.facebook.react.bridge.ReadableMap;
15
- import com.facebook.react.uimanager.ViewManagerWithGeneratedInterface;
16
-
17
- public interface RNMapsCircleManagerInterface<T extends View> extends ViewManagerWithGeneratedInterface {
18
- void setCenter(T view, @Nullable ReadableMap value);
19
- void setFillColor(T view, @Nullable Integer value);
20
- void setRadius(T view, double value);
21
- void setStrokeColor(T view, @Nullable Integer value);
22
- void setStrokeWidth(T view, float value);
23
- void setTappable(T view, boolean value);
24
- }
@@ -1,49 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GeneratePropsJavaDelegate.js
8
- */
9
-
10
- package com.facebook.react.viewmanagers;
11
-
12
- import android.view.View;
13
- import androidx.annotation.Nullable;
14
- import com.facebook.react.bridge.ColorPropConverter;
15
- import com.facebook.react.bridge.ReadableArray;
16
- import com.facebook.react.uimanager.BaseViewManager;
17
- import com.facebook.react.uimanager.BaseViewManagerDelegate;
18
- import com.facebook.react.uimanager.LayoutShadowNode;
19
-
20
- public class RNMapsGooglePolygonManagerDelegate<T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & RNMapsGooglePolygonManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
21
- public RNMapsGooglePolygonManagerDelegate(U viewManager) {
22
- super(viewManager);
23
- }
24
- @Override
25
- public void setProperty(T view, String propName, @Nullable Object value) {
26
- switch (propName) {
27
- case "coordinates":
28
- mViewManager.setCoordinates(view, (ReadableArray) value);
29
- break;
30
- case "fillColor":
31
- mViewManager.setFillColor(view, ColorPropConverter.getColor(value, view.getContext()));
32
- break;
33
- case "strokeColor":
34
- mViewManager.setStrokeColor(view, ColorPropConverter.getColor(value, view.getContext()));
35
- break;
36
- case "geodesic":
37
- mViewManager.setGeodesic(view, value == null ? false : (boolean) value);
38
- break;
39
- case "holes":
40
- mViewManager.setHoles(view, (ReadableArray) value);
41
- break;
42
- case "tappable":
43
- mViewManager.setTappable(view, value == null ? false : (boolean) value);
44
- break;
45
- default:
46
- super.setProperty(view, propName, value);
47
- }
48
- }
49
- }