Skip to content

Commit e8f1aae

Browse files
TBouderpatricio
authored andcommitted
Update from View.propTypes to ViewPropTypes to match RN v0.44.0 (react-native-maps#1323)
* Upd from View.propTypes to ViewPropTypes * Rm View component
1 parent 023dba4 commit e8f1aae

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

lib/components/MapCallout.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import React, { PropTypes } from 'react';
22
import {
3-
View,
43
StyleSheet,
4+
ViewPropTypes,
55
} from 'react-native';
66
import decorateMapComponent, {
77
SUPPORTED,
88
USES_DEFAULT_IMPLEMENTATION,
99
} from './decorateMapComponent';
1010

1111
const propTypes = {
12-
...View.propTypes,
12+
...ViewPropTypes,
1313
tooltip: PropTypes.bool,
1414
onPress: PropTypes.func,
1515
};

lib/components/MapCircle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React, { PropTypes } from 'react';
22
import {
3-
View,
3+
ViewPropTypes,
44
} from 'react-native';
55
import decorateMapComponent, {
66
USES_DEFAULT_IMPLEMENTATION,
77
SUPPORTED,
88
} from './decorateMapComponent';
99

1010
const propTypes = {
11-
...View.propTypes,
11+
...ViewPropTypes,
1212

1313
/**
1414
* The coordinate of the center of the circle

lib/components/MapMarker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import React, { PropTypes } from 'react';
22
import {
3-
View,
43
StyleSheet,
54
Platform,
65
NativeModules,
76
Animated,
87
findNodeHandle,
8+
ViewPropTypes,
99
} from 'react-native';
1010

1111
import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
@@ -22,7 +22,7 @@ const viewConfig = {
2222
};
2323

2424
const propTypes = {
25-
...View.propTypes,
25+
...ViewPropTypes,
2626

2727
// TODO(lmr): get rid of these?
2828
identifier: PropTypes.string,

lib/components/MapPolygon.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React, { PropTypes } from 'react';
22
import {
3-
View,
3+
ViewPropTypes,
44
} from 'react-native';
55
import decorateMapComponent, {
66
USES_DEFAULT_IMPLEMENTATION,
77
SUPPORTED,
88
} from './decorateMapComponent';
99

1010
const propTypes = {
11-
...View.propTypes,
11+
...ViewPropTypes,
1212

1313
/**
1414
* An array of coordinates to describe the polygon

lib/components/MapPolyline.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React, { PropTypes } from 'react';
22
import {
3-
View,
3+
ViewPropTypes,
44
} from 'react-native';
55
import decorateMapComponent, {
66
USES_DEFAULT_IMPLEMENTATION,
77
SUPPORTED,
88
} from './decorateMapComponent';
99

1010
const propTypes = {
11-
...View.propTypes,
11+
...ViewPropTypes,
1212

1313
/**
1414
* An array of coordinates to describe the polygon

lib/components/MapUrlTile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { PropTypes } from 'react';
22

33
import {
4-
View,
4+
ViewPropTypes,
55
} from 'react-native';
66

77
import decorateMapComponent, {
@@ -10,7 +10,7 @@ import decorateMapComponent, {
1010
} from './decorateMapComponent';
1111

1212
const propTypes = {
13-
...View.propTypes,
13+
...ViewPropTypes,
1414

1515
/**
1616
* The url template of the tile server. The patterns {x} {y} {z} will be replaced at runtime

lib/components/MapView.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import React, { PropTypes } from 'react';
22
import {
33
EdgeInsetsPropType,
44
Platform,
5-
View,
65
Animated,
76
requireNativeComponent,
87
NativeModules,
98
ColorPropType,
109
findNodeHandle,
10+
ViewPropTypes,
1111
} from 'react-native';
1212
import MapMarker from './MapMarker';
1313
import MapPolyline from './MapPolyline';
@@ -45,7 +45,7 @@ const viewConfig = {
4545
};
4646

4747
const propTypes = {
48-
...View.propTypes,
48+
...ViewPropTypes,
4949
/**
5050
* When provider is "google", we will use GoogleMaps.
5151
* Any value other than "google" will default to using
@@ -59,7 +59,7 @@ const propTypes = {
5959
* Used to style and layout the `MapView`. See `StyleSheet.js` and
6060
* `ViewStylePropTypes.js` for more info.
6161
*/
62-
style: View.propTypes.style,
62+
style: ViewPropTypes.style,
6363

6464
/**
6565
* A json object that describes the style of the map. This is transformed to a string

0 commit comments

Comments
 (0)