Skip to content

Commit 350f24c

Browse files
committed
Move from React.PropTypes to PropTypes
Per bartgryszko#21
1 parent 4be7aca commit 350f24c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"dependencies": {
3838
"d3-interpolate": "^1.1.2",
3939
"lodash.range": "^3.2.0",
40+
"prop-types": "^15.6.1",
4041
"react-native-svg": "^5.1.5"
4142
},
4243
"peerDependencies": {

src/CircularSlider.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import React, { PureComponent, PropTypes } from 'react';
1+
import React, { PureComponent } from 'react';
22
import { PanResponder, View } from 'react-native';
3+
import PropTypes from 'prop-types';
34
import Svg, { Circle, G, LinearGradient, Path, Defs, Stop } from 'react-native-svg';
45
import range from 'lodash.range';
56
import { interpolateHcl as interpolateGradient } from 'd3-interpolate';

src/ClockFace.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PureComponent, PropTypes } from 'react';
1+
import React, { PureComponent } from 'react';
2+
import PropTypes from 'prop-types';
23
import { G, Circle, Text, Line } from 'react-native-svg';
34
import range from 'lodash.range';
45

0 commit comments

Comments
 (0)