react-native-maps 0.30.1 → 0.30.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.
@@ -17,7 +17,7 @@ android {
17
17
  }
18
18
 
19
19
  dependencies {
20
- def work_version = "2.5.0"
20
+ def work_version = safeExtGet('targetSdkVersion', 27) < 31 ? "2.5.0" : "2.7.1"
21
21
  def supportLibVersion = safeExtGet('supportLibVersion', '28.0.0')
22
22
  def supportLibMajorVersion = supportLibVersion.split('\\.')[0] as int
23
23
  def appCompatLibName = (supportLibMajorVersion < 20) ? "androidx.appcompat:appcompat" : "com.android.support:appcompat-v7"
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
3
3
  import Marker from './MapMarker';
4
4
  import Polyline from './MapPolyline';
5
5
  import Polygon from './MapPolygon';
6
- import { ColorPropType } from 'react-native';
6
+ import { ColorPropType } from 'deprecated-react-native-prop-types';
7
7
 
8
8
  const propTypes = {
9
9
  /**
@@ -1,16 +1,14 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
- import { StyleSheet, ViewPropTypes, View } from 'react-native';
3
+ import { StyleSheet } from 'react-native';
4
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
4
5
  import decorateMapComponent, {
5
6
  SUPPORTED,
6
7
  USES_DEFAULT_IMPLEMENTATION,
7
8
  } from './decorateMapComponent';
8
9
 
9
- // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
10
- const viewPropTypes = ViewPropTypes || View.propTypes;
11
-
12
10
  const propTypes = {
13
- ...viewPropTypes,
11
+ ...ViewPropTypes,
14
12
  tooltip: PropTypes.bool,
15
13
  onPress: PropTypes.func,
16
14
  alphaHitTest: PropTypes.bool,
@@ -1,16 +1,14 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
- import { StyleSheet, ViewPropTypes, View } from 'react-native';
3
+ import { StyleSheet } from 'react-native';
4
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
4
5
  import decorateMapComponent, {
5
6
  SUPPORTED,
6
7
  NOT_SUPPORTED,
7
8
  } from './decorateMapComponent';
8
9
 
9
- // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
10
- const viewPropTypes = ViewPropTypes || View.propTypes;
11
-
12
10
  const propTypes = {
13
- ...viewPropTypes,
11
+ ...ViewPropTypes,
14
12
  onPress: PropTypes.func,
15
13
  };
16
14
 
@@ -1,16 +1,16 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
- import { ColorPropType, ViewPropTypes, View } from 'react-native';
3
+ import {
4
+ ColorPropType,
5
+ ViewPropTypes,
6
+ } from 'deprecated-react-native-prop-types';
4
7
  import decorateMapComponent, {
5
8
  USES_DEFAULT_IMPLEMENTATION,
6
9
  SUPPORTED,
7
10
  } from './decorateMapComponent';
8
11
 
9
- // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
10
- const viewPropTypes = ViewPropTypes || View.propTypes;
11
-
12
12
  const propTypes = {
13
- ...viewPropTypes,
13
+ ...ViewPropTypes,
14
14
 
15
15
  /**
16
16
  * The coordinate of the center of the circle
@@ -1,16 +1,14 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
- import { ViewPropTypes, View, processColor } from 'react-native';
3
+ import { processColor } from 'react-native';
4
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
4
5
  import decorateMapComponent, {
5
6
  SUPPORTED,
6
7
  USES_DEFAULT_IMPLEMENTATION,
7
8
  } from './decorateMapComponent';
8
9
 
9
- // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
10
- const viewPropTypes = ViewPropTypes || View.propTypes;
11
-
12
10
  const propTypes = {
13
- ...viewPropTypes,
11
+ ...ViewPropTypes,
14
12
 
15
13
  /**
16
14
  * Array of heatmap entries to apply towards density.
@@ -1,18 +1,14 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
-
4
- import { ViewPropTypes, View } from 'react-native';
3
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
5
4
 
6
5
  import decorateMapComponent, {
7
6
  USES_DEFAULT_IMPLEMENTATION,
8
7
  SUPPORTED,
9
8
  } from './decorateMapComponent';
10
9
 
11
- // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
12
- const viewPropTypes = ViewPropTypes || View.propTypes;
13
-
14
10
  const propTypes = {
15
- ...viewPropTypes,
11
+ ...ViewPropTypes,
16
12
 
17
13
  /**
18
14
  * The path template of the local tile source.
@@ -1,16 +1,17 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
3
  import {
4
- ColorPropType,
5
4
  StyleSheet,
6
5
  Platform,
7
6
  NativeModules,
8
7
  Animated,
9
8
  Image,
10
9
  findNodeHandle,
11
- ViewPropTypes,
12
- View,
13
10
  } from 'react-native';
11
+ import {
12
+ ColorPropType,
13
+ ViewPropTypes,
14
+ } from 'deprecated-react-native-prop-types';
14
15
 
15
16
  import decorateMapComponent, {
16
17
  SUPPORTED,
@@ -24,11 +25,8 @@ const viewConfig = {
24
25
  },
25
26
  };
26
27
 
27
- // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
28
- const viewPropTypes = ViewPropTypes || View.propTypes;
29
-
30
28
  const propTypes = {
31
- ...viewPropTypes,
29
+ ...ViewPropTypes,
32
30
 
33
31
  // TODO(lmr): get rid of these?
34
32
  identifier: PropTypes.string,
@@ -1,6 +1,7 @@
1
1
  import React, { Component } from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { View, StyleSheet, Image, Animated } from 'react-native';
3
+ import { StyleSheet, Image, Animated } from 'react-native';
4
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
4
5
 
5
6
  import decorateMapComponent, {
6
7
  SUPPORTED,
@@ -15,7 +16,7 @@ const viewConfig = {
15
16
  };
16
17
 
17
18
  const propTypes = {
18
- ...View.propTypes,
19
+ ...ViewPropTypes,
19
20
  // A custom image to be used as overlay.
20
21
  image: PropTypes.any.isRequired,
21
22
  // Top left and bottom right coordinates for the overlay
@@ -1,17 +1,17 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
- import { ColorPropType, ViewPropTypes, View } from 'react-native';
3
+ import {
4
+ ColorPropType,
5
+ ViewPropTypes,
6
+ } from 'deprecated-react-native-prop-types';
4
7
  import decorateMapComponent, {
5
8
  USES_DEFAULT_IMPLEMENTATION,
6
9
  SUPPORTED,
7
10
  } from './decorateMapComponent';
8
11
  import * as ProviderConstants from './ProviderConstants';
9
12
 
10
- // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
11
- const viewPropTypes = ViewPropTypes || View.propTypes;
12
-
13
13
  const propTypes = {
14
- ...viewPropTypes,
14
+ ...ViewPropTypes,
15
15
 
16
16
  /**
17
17
  * An array of coordinates to describe the polygon
@@ -1,16 +1,16 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
- import { ColorPropType, ViewPropTypes, View } from 'react-native';
3
+ import {
4
+ ColorPropType,
5
+ ViewPropTypes,
6
+ } from 'deprecated-react-native-prop-types';
4
7
  import decorateMapComponent, {
5
8
  USES_DEFAULT_IMPLEMENTATION,
6
9
  SUPPORTED,
7
10
  } from './decorateMapComponent';
8
11
 
9
- // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
10
- const viewPropTypes = ViewPropTypes || View.propTypes;
11
-
12
12
  const propTypes = {
13
- ...viewPropTypes,
13
+ ...ViewPropTypes,
14
14
 
15
15
  /**
16
16
  * An array of coordinates to describe the polygon
@@ -1,18 +1,14 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
-
4
- import { ViewPropTypes, View } from 'react-native';
3
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
5
4
 
6
5
  import decorateMapComponent, {
7
6
  USES_DEFAULT_IMPLEMENTATION,
8
7
  SUPPORTED,
9
8
  } from './decorateMapComponent';
10
9
 
11
- // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
12
- const viewPropTypes = ViewPropTypes || View.propTypes;
13
-
14
10
  const propTypes = {
15
- ...viewPropTypes,
11
+ ...ViewPropTypes,
16
12
 
17
13
  /**
18
14
  * The url template of the tile server. The patterns {x} {y} {z} will be replaced at runtime
@@ -1,17 +1,18 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
3
  import {
4
- EdgeInsetsPropType,
5
- PointPropType,
6
4
  Platform,
7
5
  Animated as RNAnimated,
8
6
  requireNativeComponent,
9
7
  NativeModules,
10
- ColorPropType,
11
8
  findNodeHandle,
12
- ViewPropTypes,
13
- View,
14
9
  } from 'react-native';
10
+ import {
11
+ EdgeInsetsPropType,
12
+ PointPropType,
13
+ ColorPropType,
14
+ ViewPropTypes,
15
+ } from 'deprecated-react-native-prop-types';
15
16
  import MapMarker from './MapMarker';
16
17
  import MapPolyline from './MapPolyline';
17
18
  import MapPolygon from './MapPolygon';
@@ -65,11 +66,8 @@ const CameraShape = PropTypes.shape({
65
66
  zoom: PropTypes.number.isRequired,
66
67
  });
67
68
 
68
- // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
69
- const viewPropTypes = ViewPropTypes || View.propTypes;
70
-
71
69
  const propTypes = {
72
- ...viewPropTypes,
70
+ ...ViewPropTypes,
73
71
  /**
74
72
  * When provider is "google", we will use GoogleMaps.
75
73
  * Any value other than "google" will default to using
@@ -81,7 +79,7 @@ const propTypes = {
81
79
  * Used to style and layout the `MapView`. See `StyleSheet.js` and
82
80
  * `ViewStylePropTypes.js` for more info.
83
81
  */
84
- style: viewPropTypes.style,
82
+ style: ViewPropTypes.style,
85
83
 
86
84
  /**
87
85
  * A json object that describes the style of the map. This is transformed to a string
@@ -1,18 +1,14 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
-
4
- import { ViewPropTypes, View } from 'react-native';
3
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
5
4
 
6
5
  import decorateMapComponent, {
7
6
  USES_DEFAULT_IMPLEMENTATION,
8
7
  SUPPORTED,
9
8
  } from './decorateMapComponent';
10
9
 
11
- // if ViewPropTypes is not defined fall back to View.propType (to support RN < 0.44)
12
- const viewPropTypes = ViewPropTypes || View.propTypes;
13
-
14
10
  const propTypes = {
15
- ...viewPropTypes,
11
+ ...ViewPropTypes,
16
12
 
17
13
  /**
18
14
  * The url template of the tile server. The patterns {minX} {maxX} {minY} {maxY} {width} {height}
package/package.json CHANGED
@@ -3,12 +3,25 @@
3
3
  "description": "React Native Mapview component for iOS + Android",
4
4
  "main": "index.js",
5
5
  "author": "Leland Richardson <leland.m.richardson@gmail.com>",
6
- "version": "0.30.1",
6
+ "version": "0.30.2",
7
7
  "scripts": {
8
- "lint": "./node_modules/eslint/bin/eslint.js .",
9
- "ci": "npm run lint",
10
- "test": "jest"
8
+ "lint": "eslint . --max-warnings 0",
9
+ "test": "jest",
10
+ "prepare": "husky install",
11
+ "release": "semantic-release"
11
12
  },
13
+ "files": [
14
+ "index.d.ts",
15
+ "lib",
16
+ "react-native-google-maps.podspec",
17
+ "react-native-maps.podspec",
18
+ "react-native.config.js",
19
+ "!lib/android/build",
20
+ "!lib/ios/build",
21
+ "!**/__tests__",
22
+ "!**/__fixtures__",
23
+ "!**/__mocks__"
24
+ ],
12
25
  "repository": {
13
26
  "type": "git",
14
27
  "url": "https://github.com/react-native-maps/react-native-maps"
@@ -28,16 +41,21 @@
28
41
  "react-native-web": ">= 0.11"
29
42
  },
30
43
  "devDependencies": {
44
+ "@commitlint/cli": "16.2.3",
45
+ "@commitlint/config-conventional": "16.2.1",
31
46
  "@react-native-community/eslint-config": "^3.0.1",
32
47
  "babel-jest": "^27.3.1",
33
48
  "eslint": "7.32.0",
49
+ "husky": "7.0.4",
34
50
  "jest": "^27.3.1",
35
51
  "react": "^17.0.2",
36
52
  "react-native": "^0.66.3",
53
+ "semantic-release": "19.0.2",
37
54
  "typescript": "^4.4.3"
38
55
  },
39
56
  "dependencies": {
40
- "@types/geojson": "^7946.0.7"
57
+ "@types/geojson": "^7946.0.7",
58
+ "deprecated-react-native-prop-types": "^2.3.0"
41
59
  },
42
60
  "jest": {
43
61
  "preset": "react-native",
package/.eslintrc DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "extends": "@react-native-community"
3
- }
@@ -1,111 +0,0 @@
1
- ---
2
- name: "\U0001F41B Bug report"
3
- about: Report a reproducible bug or regression in this library.
4
- title: ''
5
- labels: bug
6
- assignees: ''
7
-
8
- ---
9
-
10
- # Bug report
11
-
12
- <!--
13
- 👋 Hi!
14
-
15
- 🚨 Please read the following carefully before opening a new issue. Your issue may
16
- be closed if it doesn't provide the required pieces of information. 🚨
17
-
18
- We expect that it will take you about 30 minutes to produce a high-quality bug report.
19
- While this may seem like a lot, putting care into issues helps us fix them faster.
20
- For bug reports, it is REQUIRED to fill the rest of this template, or the issue will be closed.
21
-
22
- Before submitting a new issue, please:
23
-
24
- - Test using the latest release of the library, as maybe your bug has been already fixed.
25
- - Check the existing [Issues](https://github.com/react-community/react-native-maps/issues?utf8=%E2%9C%93&q=) or on StackOverflow if there isn't a fix already for your problem.
26
-
27
- Make sure you have followed the [Installation Instructions](https://github.com/react-community/react-native-maps/blob/master/docs/installation.md) too.
28
-
29
- Still ready? Fill the template. 👇
30
- -->
31
-
32
- ## Summary
33
-
34
- <!--
35
- Provide a clear and concise description of what the bug is.
36
- -->
37
-
38
- ## Environment info
39
-
40
- <!--
41
- Please specify the react, react-native, react-native-maps versions, eg:
42
-
43
- react-native: 0.51.0
44
- react: 16.0.0
45
- react-native-maps: 0.19.0 or "git+ssh://git@github.com/react-native-maps/react-native-maps.git"
46
-
47
- ***Make sure you are on v0.48.0 or greater of react-native, otherwise you may get this error:
48
-
49
- Target Platform: eg: iOS - 11.2 Simulator/iPhone 6, Android 7.1.1/Galaxy S6/Genymotion etc
50
-
51
- ***If your target is iOS , please specify if you are using AppleMaps or GoogleMaps
52
- -->
53
-
54
- `react-native info` output:
55
-
56
- ```bash
57
- # paste your react, react-native, react-native-maps versions here
58
- ```
59
-
60
- ## Steps to reproduce
61
-
62
- <!--
63
- - You must provide a clear list of steps and code to reproduce the problem.
64
- - Keep the code reproducing the bug as simple as possible, with the minimum amount of code required to reproduce the issue. See https://stackoverflow.com/help/mcve.
65
- - If this library has additional install steps, describe them (e.g., pod install? jetify? etc).
66
- - Either re-create the bug using the repository's example app or link to a GitHub repository with code that reproduces the bug.
67
- - Explain the steps we need to take to reproduce the issue:
68
- -->
69
-
70
- 1. …
71
- 2. …
72
-
73
- Describe what you expected to happen:
74
-
75
- <!--
76
- How did you expect your project to behave?
77
- It’s fine if you’re not sure your understanding is correct.
78
- Just write down what you thought would happen.
79
- -->
80
-
81
- 1. …
82
- 2. …
83
-
84
- Describe what you actually happens:
85
-
86
- <!--
87
- Did something go wrong?
88
- Is something broken, or not behaving as you expected?
89
- Describe this section in detail, and attach screenshots if possible.
90
- Don't just say "it doesn't work"!
91
- -->
92
-
93
- 1. …
94
- 2. …
95
-
96
- ## Reproducible sample code
97
-
98
- <!--
99
- Please add minimal runnable repro as explained above so that the bug can be tested in isolation.
100
- If needed, you can also provide other samples: error messages / stack traces, screenshots, gifs, etc.
101
-
102
- Here are two ways to do it:
103
-
104
- * Create a new app using https://snack.expo.io/ and try to reproduce the issue in it.
105
- This is useful if you roughly know where the problem is, or can’t share the real code.
106
-
107
- * Or, copy your app and remove things until you’re left with the minimal reproducible demo.
108
- This is useful for finding the root cause. You may then optionally create a Snack.
109
-
110
- Once you’re done, copy and paste the link to the Snack or a public GitHub repository below:
111
- -->
@@ -1,32 +0,0 @@
1
- ---
2
- name: "\U0001F4A1 Feature request"
3
- about: Submit your idea for a change in the codebase.
4
- title: ''
5
- labels: Feature Request
6
- assignees: ''
7
-
8
- ---
9
-
10
- # Feature request
11
-
12
- <!--
13
- This issue should serve for you to present or pitch an idea to the maintainers - but remember that it would be better if you were to submit a PR instead 🤗
14
- -->
15
-
16
- ## Why it is needed
17
-
18
- <!--
19
- Please tell us a bit more of why you want this feature to be added, what's its origin.
20
- -->
21
-
22
- ## Possible implementation
23
-
24
- <!--
25
- It really helps if you could describe from a technical POV how this new feature would work, which code it rely on, etc.
26
- -->
27
-
28
- ### Code sample
29
-
30
- <!--
31
- Please show how the new code could work, if doable.
32
- -->
@@ -1,5 +0,0 @@
1
- # No Template
2
-
3
- 👉 Please follow one of the issue templates provided by the repo - if you are seeing this message, it means you haven't.
4
-
5
- If you don't follow the issue template, we may immediately close it.
@@ -1,53 +0,0 @@
1
- <!--
2
- PLEASE DON'T DELETE THIS TEMPLATE UNTIL YOU HAVE READ THE FIRST SECTION.
3
-
4
- **What happens if you SKIP this step?**
5
-
6
- Your pull request will NOT be evaluated!
7
-
8
- PLEASE NOTE THAT PRs WITHOUT THE TEMPLATE IN PLACE WILL BE CLOSED RIGHT FROM THE START.
9
-
10
- Thanks for helping us help you!
11
- -->
12
-
13
- ### Does any other open PR do the same thing?
14
-
15
- <!--
16
- **Please keep in mind that we apply the FIFO rule for PRs, so if your PR comes after an existing one and there is no compelling reason to merge it instead of the existing one it will be discarded!**
17
-
18
- If another PR exists that has similar scope to yours, please specify why you opened yours.
19
- This could be one of the following (but not limited to)
20
-
21
- - the previous PR is stalled, as it's really old and the author didn't continue working on it
22
- - there are conflicts with the `master` branch and the author didn't fix them
23
- - the PR doesn't apply anymore (please specify why)
24
- - my PR is better (please specify why)
25
- -->
26
-
27
- (please answer here)
28
-
29
- ### What issue is this PR fixing?
30
-
31
- (please link the issue here)
32
-
33
- ### How did you test this PR?
34
-
35
- <!--
36
- Please let us know how you have verified that your changes work.
37
-
38
- Ideally, your PR should contain a step-by-step test plan, so that reviewers can easily verify your changes.
39
-
40
- Your PR will have much better chances of being merged if it is straightforward to verify.
41
-
42
- Some questions you might want to think about:
43
-
44
- - Which platform (eg. Android/iOS) & Maps API (eg. Google/Apple) does this change affect, if any?
45
- - Did you test this on a real device, or in a simulator?
46
- - Are there any platforms you were not able to test?
47
- -->
48
-
49
- (please answer here)
50
-
51
- <!--
52
- Thanks for your contribution :)
53
- -->
package/.github/stale.yml DELETED
@@ -1,17 +0,0 @@
1
- # Number of days of inactivity before an issue becomes stale
2
- daysUntilStale: 120
3
- # Number of days of inactivity before a stale issue is closed
4
- daysUntilClose: 7
5
- # Issues with these labels will never be considered stale
6
- exemptLabels:
7
- - security
8
- - bug
9
- # Label to use when marking an issue as stale
10
- staleLabel: stale
11
- # Comment to post when marking an issue as stale. Set to `false` to disable
12
- markComment: >
13
- This issue has been automatically marked as stale because it has not had
14
- recent activity. It will be closed if no further activity occurs. Thank you
15
- for your contributions.
16
- # Comment to post when closing a stale issue. Set to `false` to disable
17
- closeComment: false
@@ -1,21 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches: [ master ]
6
- pull_request:
7
- branches: [ master ]
8
-
9
- jobs:
10
- build:
11
- # The type of runner that the job will run on
12
- runs-on: ubuntu-latest
13
-
14
- steps:
15
- - uses: actions/checkout@v2
16
-
17
- - name: Yarn
18
- run: yarn install
19
-
20
- - name: Yarn CI
21
- run: yarn ci
package/.prettierrc DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "trailingComma": "es5",
3
- "singleQuote": true
4
- }