react-native-maps 1.22.0 → 1.22.2
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/package.json +10 -5
- package/react-native-maps-generated.podspec +9 -24
- package/src/MapView.tsx +9 -2
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": "src/index.ts",
|
|
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.22.
|
|
8
|
+
"version": "1.22.2",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"format-check": "prettier --check .",
|
|
14
14
|
"build": "tsc --project tsconfig.build.json && tsc --project plugin/tsconfig.json",
|
|
15
15
|
"test": "jest",
|
|
16
|
-
"prepare": "husky
|
|
16
|
+
"prepare": "husky",
|
|
17
17
|
"release": "semantic-release",
|
|
18
18
|
"bundle-install": "cd example && bundle install",
|
|
19
19
|
"pod-install": "cd example/ios && RCT_NEW_ARCH_ENABLED=1 bundle exec pod install",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"@babel/core": "^7.25.2",
|
|
63
63
|
"@babel/preset-env": "^7.25.3",
|
|
64
64
|
"@babel/runtime": "^7.25.0",
|
|
65
|
-
"@commitlint/cli": "
|
|
66
|
-
"@commitlint/config-conventional": "
|
|
65
|
+
"@commitlint/cli": "19.8.0",
|
|
66
|
+
"@commitlint/config-conventional": "19.8.0",
|
|
67
67
|
"@expo/config-plugins": "^9.0.17",
|
|
68
68
|
"@react-native-community/cli": "15.0.1",
|
|
69
69
|
"@react-native/babel-preset": "0.76.8",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@types/react-test-renderer": "^18.0.0",
|
|
77
77
|
"babel-jest": "^29.6.3",
|
|
78
78
|
"eslint": "^8.19.0",
|
|
79
|
-
"husky": "
|
|
79
|
+
"husky": "9.1.7",
|
|
80
80
|
"jest": "^29.6.3",
|
|
81
81
|
"prettier": "2.8.8",
|
|
82
82
|
"react": "^18.3.1",
|
|
@@ -88,6 +88,11 @@
|
|
|
88
88
|
"dependencies": {
|
|
89
89
|
"@types/geojson": "^7946.0.13"
|
|
90
90
|
},
|
|
91
|
+
"commitlint": {
|
|
92
|
+
"extends": [
|
|
93
|
+
"@commitlint/config-conventional"
|
|
94
|
+
]
|
|
95
|
+
},
|
|
91
96
|
"jest": {
|
|
92
97
|
"preset": "react-native",
|
|
93
98
|
"testPathIgnorePatterns": [
|
|
@@ -1,31 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
|
|
3
|
-
|
|
4
|
-
folly_config = get_folly_config()
|
|
5
|
-
folly_compiler_flags = folly_config[:compiler_flags]
|
|
6
|
-
|
|
1
|
+
# react-native-maps-generated-simple.podspec
|
|
7
2
|
Pod::Spec.new do |s|
|
|
8
3
|
s.name = "react-native-maps-generated"
|
|
9
|
-
s.version =
|
|
10
|
-
s.summary =
|
|
11
|
-
s.authors =
|
|
12
|
-
s.homepage =
|
|
13
|
-
s.license =
|
|
4
|
+
s.version = "1.22.2"
|
|
5
|
+
s.summary = "React Native Mapview component for iOS + Android"
|
|
6
|
+
s.authors = { "Salah Ghanim" => "salah.ghanim@gmail.com" }
|
|
7
|
+
s.homepage = "https://github.com/react-native-maps/react-native-maps"
|
|
8
|
+
s.license = "MIT"
|
|
14
9
|
s.platform = :ios, "15.1"
|
|
15
|
-
s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "
|
|
16
|
-
s.source_files = "ios/generated/**/*.{h,m,mm,
|
|
17
|
-
s.exclude_files = [
|
|
18
|
-
"ios/generated/RCTAppDependencyProvider.h",
|
|
19
|
-
"ios/generated/RCTAppDependencyProvider.mm",
|
|
20
|
-
"ios/generated/RCTThirdPartyComponentsProvider.h",
|
|
21
|
-
"ios/generated/RCTThirdPartyComponentsProvider.mm",
|
|
22
|
-
"ios/generated/RCTModulesConformingToProtocolsProvider.h",
|
|
23
|
-
"ios/generated/RCTModulesConformingToProtocolsProvider.mm",
|
|
24
|
-
]
|
|
10
|
+
s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag => "v1.22.2" }
|
|
11
|
+
s.source_files = "ios/generated/**/*.{h,m,mm,swift}"
|
|
25
12
|
s.module_map = 'ios/generated/module.modulemap'
|
|
26
13
|
s.public_header_files = "ios/generated/**/*.h"
|
|
27
14
|
s.module_name = 'ReactNativeMapsGenerated'
|
|
28
|
-
s.
|
|
29
|
-
install_modules_dependencies(s)
|
|
30
|
-
|
|
15
|
+
s.dependency 'React-Core'
|
|
31
16
|
end
|
package/src/MapView.tsx
CHANGED
|
@@ -752,13 +752,13 @@ class MapView extends React.Component<MapViewProps, State> {
|
|
|
752
752
|
private map: NativeProps['ref'];
|
|
753
753
|
|
|
754
754
|
private fabricMap =
|
|
755
|
-
React.createRef<FabricMapHandle | null>() as React.RefObject<FabricMapHandle>;
|
|
755
|
+
React.createRef<FabricMapHandle | null>() as React.RefObject<FabricMapHandle | null>;
|
|
756
756
|
|
|
757
757
|
constructor(props: MapViewProps) {
|
|
758
758
|
super(props);
|
|
759
759
|
|
|
760
760
|
this.map = React.createRef<MapViewNativeComponentType>();
|
|
761
|
-
this.fabricMap = React.createRef<FabricMapHandle>();
|
|
761
|
+
this.fabricMap = React.createRef<FabricMapHandle | null>();
|
|
762
762
|
this.state = {
|
|
763
763
|
isReady: false,
|
|
764
764
|
};
|
|
@@ -1113,6 +1113,12 @@ class MapView extends React.Component<MapViewProps, State> {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
};
|
|
1115
1115
|
|
|
1116
|
+
private handleLongPress = (event: NativeSyntheticEvent<any>) => {
|
|
1117
|
+
if (this.props.onLongPress) {
|
|
1118
|
+
this.props.onLongPress(event);
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
1121
|
+
|
|
1116
1122
|
render() {
|
|
1117
1123
|
// Define props specifically for MapFabricNativeProps
|
|
1118
1124
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
@@ -1164,6 +1170,7 @@ class MapView extends React.Component<MapViewProps, State> {
|
|
|
1164
1170
|
onIndoorBuildingFocused: this.handleIndoorBuildingFocused,
|
|
1165
1171
|
// @ts-ignore
|
|
1166
1172
|
onIndoorLevelActivated: this.handleIndoorLevelActivated,
|
|
1173
|
+
onLongPress: this.handleLongPress,
|
|
1167
1174
|
...restProps,
|
|
1168
1175
|
};
|
|
1169
1176
|
if (this.props.region) {
|