react-native-maps 1.0.0-beta.8 → 1.0.1

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.
@@ -22,7 +22,7 @@
22
22
  @property (nonatomic, assign) MKCoordinateRegion initialRegion;
23
23
  @property (nonatomic, assign) MKCoordinateRegion region;
24
24
  @property (nonatomic, assign) GMSCameraPosition *cameraProp; // Because the base class already has a "camera" prop.
25
- @property (nonatomic, assign) GMSCameraPosition *initialCamera;
25
+ @property (nonatomic, strong) GMSCameraPosition *initialCamera;
26
26
  @property (nonatomic, assign) NSString *customMapStyleString;
27
27
  @property (nonatomic, assign) UIEdgeInsets mapPadding;
28
28
  @property (nonatomic, assign) NSString *paddingAdjustmentBehaviorString;
@@ -671,12 +671,11 @@ RCT_EXPORT_METHOD(getAddressFromCoordinates:(nonnull NSNumber *)reactTag
671
671
  }
672
672
 
673
673
  if (nearestDistance <= maxMeters) {
674
- AIRMapCoordinate *firstCoord = nearestPolyline.coordinates.firstObject;
675
674
  id event = @{
676
675
  @"action": @"polyline-press",
677
676
  @"coordinate": @{
678
- @"latitude": @(firstCoord.coordinate.latitude),
679
- @"longitude": @(firstCoord.coordinate.longitude)
677
+ @"latitude": @(tapCoordinate.latitude),
678
+ @"longitude": @(tapCoordinate.longitude)
680
679
  }
681
680
  };
682
681
  nearestPolyline.onPress(event);
package/package.json CHANGED
@@ -1,17 +1,20 @@
1
1
  {
2
2
  "name": "react-native-maps",
3
3
  "description": "React Native Mapview component for iOS + Android",
4
+ "source": "src/index",
4
5
  "main": "lib/index.js",
5
6
  "author": "Leland Richardson <leland.m.richardson@gmail.com>",
6
- "version": "1.0.0-beta.8",
7
+ "homepage": "https://github.com/react-native-maps/react-native-maps#readme",
8
+ "version": "1.0.1",
7
9
  "license": "MIT",
8
10
  "scripts": {
9
11
  "lint": "eslint . --max-warnings 0",
10
12
  "tscheck": "tsc --noEmit",
11
- "build": "tsc",
13
+ "build": "tsc --project tsconfig.build.json",
12
14
  "test": "jest",
13
15
  "prepare": "husky install",
14
- "release": "semantic-release"
16
+ "release": "semantic-release",
17
+ "bootstrap": "yarn --cwd example && yarn && (cd example && cd ios && pod install)"
15
18
  },
16
19
  "files": [
17
20
  "lib",
@@ -49,17 +52,17 @@
49
52
  }
50
53
  },
51
54
  "devDependencies": {
52
- "@commitlint/cli": "17.0.2",
53
- "@commitlint/config-conventional": "17.0.2",
54
- "@react-native-community/eslint-config": "^3.0.2",
55
- "@types/react-native": "0.68.0",
55
+ "@commitlint/cli": "17.0.3",
56
+ "@commitlint/config-conventional": "17.0.3",
57
+ "@react-native-community/eslint-config": "3.0.3",
58
+ "@types/react-native": "0.69.2",
56
59
  "babel-jest": "^27.3.1",
57
- "eslint": "7.32.0",
60
+ "eslint": "^7.32.0",
58
61
  "husky": "8.0.1",
59
62
  "jest": "^27.3.1",
60
63
  "prettier": "2.7.1",
61
- "react": "17.0.2",
62
- "react-native": "0.68.2",
64
+ "react": "18.0.0",
65
+ "react-native": "0.69.1",
63
66
  "semantic-release": "19.0.3",
64
67
  "typescript": "4.7.4"
65
68
  },
@@ -5,11 +5,10 @@ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
5
5
  Pod::Spec.new do |s|
6
6
  s.name = "react-native-google-maps"
7
7
  s.version = package['version']
8
- s.summary = "React Native Mapview component for iOS + Android"
9
-
10
- s.authors = { "intelligibabble" => "leland.m.richardson@gmail.com" }
11
- s.homepage = "https://github.com/react-native-maps/react-native-maps#readme"
12
- s.license = "MIT"
8
+ s.summary = package["description"]
9
+ s.authors = package["author"]
10
+ s.homepage = package["homepage"]
11
+ s.license = package["license"]
13
12
  s.platform = :ios, "13.0"
14
13
 
15
14
  s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }
@@ -5,11 +5,10 @@ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
5
5
  Pod::Spec.new do |s|
6
6
  s.name = "react-native-maps"
7
7
  s.version = package['version']
8
- s.summary = "React Native Mapview component for iOS + Android"
9
-
10
- s.authors = { "intelligibabble" => "leland.m.richardson@gmail.com" }
11
- s.homepage = "https://github.com/react-native-maps/react-native-maps#readme"
12
- s.license = "MIT"
8
+ s.summary = package["description"]
9
+ s.authors = package["author"]
10
+ s.homepage = package["homepage"]
11
+ s.license = package["license"]
13
12
  s.platform = :ios, "11.0"
14
13
 
15
14
  s.source = { :git => "https://github.com/react-native-maps/react-native-maps.git", :tag=> "v#{s.version}" }