Skip to content

Commit b28558a

Browse files
committed
Import PropTypes from separate package
1 parent a84c31b commit b28558a

File tree

9 files changed

+19
-40
lines changed

9 files changed

+19
-40
lines changed

Bar.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import React, {
2-
Component,
3-
PropTypes,
4-
} from 'react';
5-
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
63
import {
74
Animated,
85
Easing,

Circle.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import React, {
2-
Component,
3-
PropTypes,
4-
} from 'react';
5-
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
63
import {
74
Animated,
85
ART,

CircleSnail.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import React, {
2-
Component,
3-
PropTypes,
4-
} from 'react';
5-
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
63
import {
74
Animated,
85
ART,

Pie.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import React, {
2-
Component,
3-
PropTypes,
4-
} from 'react';
5-
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
63
import {
74
Animated,
85
ART,

Shapes/Arc.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
/* eslint new-cap: ["error", { "capIsNew": false }] */
22

3-
import React, {
4-
Component,
5-
PropTypes,
6-
} from 'react';
7-
3+
import React, { Component } from 'react';
4+
import PropTypes from 'prop-types';
85
import { ART } from 'react-native';
96

107
const CIRCLE = Math.PI * 2;

Shapes/Circle.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
/* eslint new-cap: ["error", { "capIsNew": false }] */
22
/* eslint no-unexpected-multiline: 0 */
33

4-
import React, {
5-
Component,
6-
PropTypes,
7-
} from 'react';
8-
4+
import React, { Component } from 'react';
5+
import PropTypes from 'prop-types';
96
import { ART } from 'react-native';
107

118
function makeCirclePath(x, y, radius, direction) {

Shapes/Sector.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
/* eslint new-cap: ["error", { "capIsNew": false }] */
22

3-
import React, {
4-
Component,
5-
PropTypes,
6-
} from 'react';
7-
3+
import React, { Component } from 'react';
4+
import PropTypes from 'prop-types';
85
import { ART } from 'react-native';
96

107
const CIRCLE = Math.PI * 2;

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,8 @@
4545
"eslint-plugin-import": "^1.16.0",
4646
"eslint-plugin-jsx-a11y": "^2.2.3",
4747
"eslint-plugin-react": "^6.4.1"
48+
},
49+
"dependencies": {
50+
"prop-types": "^15.5.8"
4851
}
4952
}

withAnimation.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import React, {
2-
Component,
3-
PropTypes,
4-
} from 'react';
5-
1+
import React, { Component } from 'react';
2+
import PropTypes from 'prop-types';
63
import {
74
Animated,
85
Easing,

0 commit comments

Comments
 (0)