Skip to content

Commit

Permalink
Added prop-types dependency and updated src files to use PropTypes fr…
Browse files Browse the repository at this point in the history
…om "prop-types" (Issue tomauty#182)
  • Loading branch information
urikphytech committed Apr 2, 2018
1 parent 5fadf3e commit 95294ea
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"babel-cli": "^6.10.1",
"babel-eslint": "^6.0.0",
"babel-plugin-transform-flow-strip-types": "^6.8.0",
"babel-preset-react-native": "^1.5.3"
"babel-preset-react-native": "^1.5.3",
"prop-types": "^15.6.1"
},
"description": "[![Join the chat at https://gitter.im/tomauty/react-native-chart](https://badges.gitter.im/tomauty/react-native-chart.svg)](https://gitter.im/tomauty/react-native-chart) [![npm version](https://badge.fury.io/js/react-native-chart.svg)](https://badge.fury.",
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion src/Chart.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* @flow */
'use strict';
import React, { Component, PropTypes } from 'react';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { LayoutAnimation, StyleSheet, View } from 'react-native';
import BarChart from './BarChart';
import LineChart from './LineChart';
Expand Down
3 changes: 2 additions & 1 deletion src/Circle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* @flow */
import React, { Component, PropTypes } from 'react';
import PropTypes from "prop-types";
import React, { Component } from 'react';
import { ART } from 'react-native';
const { Path, Shape } = ART;
import * as C from './constants';
Expand Down
5 changes: 3 additions & 2 deletions src/Grid.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { View, StyleSheet } from 'react-native';
import { uniqueValuesInDataSets } from './util';

Expand Down Expand Up @@ -75,4 +76,4 @@ export default class Grid extends Component {
</View>
);
}
}
}
4 changes: 2 additions & 2 deletions src/Wedge.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* (Int) innerRadius
*
*/

import React, { Component, PropTypes } from 'react';
import PropTypes from "prop-types";
import React, { Component } from 'react';
import { ART } from 'react-native';
const { Shape, Path } = ART;

Expand Down
3 changes: 2 additions & 1 deletion src/xAxis.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* @flow */
'use strict';
import React, { Component, PropTypes } from 'react';
import PropTypes from "prop-types";
import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { uniqueValuesInDataSets } from './util';

Expand Down
3 changes: 2 additions & 1 deletion src/yAxis.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* @flow */
import React, { Component, PropTypes } from 'react';
import PropTypes from "prop-types";
import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { uniqueValuesInDataSets } from './util';

Expand Down

0 comments on commit 95294ea

Please sign in to comment.