Skip to content

Commit ee1e709

Browse files
author
Gabriel Peal
committed
Use prop-types and add supprort for RN 0.45
1 parent b1181d4 commit ee1e709

File tree

12 files changed

+31
-13
lines changed

12 files changed

+31
-13
lines changed

.jscodeshiftignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# To run a codeshift on the react-native-maps library, cd to the root dir and run:
2+
# jscodeshift -t PATH_TO_TRANSFORM . --ignore-config .jscodeshiftignore
3+
.idea
4+
android
5+
docs
6+
example
7+
gradle
8+
node_modules
9+
scripts

example/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ android {
127127
}
128128

129129
dependencies {
130-
compile 'com.facebook.react:react-native:0.42.+'
130+
compile 'com.facebook.react:react-native:0.45.+'
131131
compile 'com.android.support:appcompat-v7:25.3.0'
132132
compile 'com.android.support:support-annotations:25.3.0'
133133
compile project(':react-native-maps-lib')

example/examples/EventListener.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
ScrollView,
88
} from 'react-native';
99
// eslint-disable-next-line max-len
10-
import SyntheticEvent from 'react-native/Libraries/Renderer/src/renderers/shared/stack/event/SyntheticEvent';
10+
import SyntheticEvent from 'react-native/Libraries/Renderer/src/renderers/shared/shared/event/SyntheticEvent';
1111
import MapView from 'react-native-maps';
1212
import PriceMarker from './PriceMarker';
1313

lib/components/MapCallout.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import PropTypes from 'prop-types';
2+
import React from 'react';
23
import {
34
StyleSheet,
45
ViewPropTypes,

lib/components/MapCircle.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import PropTypes from 'prop-types';
2+
import React from 'react';
23
import {
34
ViewPropTypes,
45
} from 'react-native';

lib/components/MapMarker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import PropTypes from 'prop-types';
2+
import React from 'react';
23
import {
34
StyleSheet,
45
Platform,

lib/components/MapPolygon.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import PropTypes from 'prop-types';
2+
import React from 'react';
23
import {
34
ViewPropTypes,
45
} from 'react-native';

lib/components/MapPolyline.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import PropTypes from 'prop-types';
2+
import React from 'react';
23
import {
34
ViewPropTypes,
45
} from 'react-native';

lib/components/MapUrlTile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import PropTypes from 'prop-types';
2+
import React from 'react';
23

34
import {
45
ViewPropTypes,

lib/components/MapView.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react';
1+
import PropTypes from 'prop-types';
2+
import React from 'react';
23
import {
34
EdgeInsetsPropType,
45
Platform,

0 commit comments

Comments
 (0)