Skip to content

Commit

Permalink
Switch PropTypes to external package
Browse files Browse the repository at this point in the history
Since React v15.5 PropTypes has been moved out into an external
`prop-types` library. See
https://reactjs.org/docs/typechecking-with-proptypes.html for
more details.
  • Loading branch information
ollyfg committed Mar 17, 2018
1 parent 54a3535 commit 743d782
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ActionButton.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, {
Component,
PropTypes,
} from 'react';
import {
StyleSheet,
Expand All @@ -10,6 +9,7 @@ import {
TouchableOpacity,
TouchableWithoutFeedback,
} from 'react-native';
import PropTypes from 'prop-types';
import ActionButtonItem from './ActionButtonItem';

const alignMap = {
Expand Down
2 changes: 1 addition & 1 deletion ActionButtonItem.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React, {
Component,
PropTypes,
} from 'react';
import {
StyleSheet,
View,
Animated,
TouchableOpacity,
} from 'react-native';
import PropTypes from 'prop-types';

export default class ActionButtonItem extends Component {

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@
"bugs": {
"url": "https://github.com/geremih/react-native-circular-action-menu/issues"
},
"homepage": "https://github.com/geremih/react-native-circular-action-menu"
"homepage": "https://github.com/geremih/react-native-circular-action-menu",
"dependencies": {
"prop-types": "^15.6.1"
}
}

0 comments on commit 743d782

Please sign in to comment.