From 743d7822e97bc9be3c58407ef9f4ed794bd2d7d0 Mon Sep 17 00:00:00 2001 From: Oliver Fawcett-Griffiths Date: Sat, 17 Mar 2018 15:35:40 +1300 Subject: [PATCH] Switch PropTypes to external package 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. --- ActionButton.js | 2 +- ActionButtonItem.js | 2 +- package.json | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ActionButton.js b/ActionButton.js index 2a4ddb5..eb64e59 100644 --- a/ActionButton.js +++ b/ActionButton.js @@ -1,6 +1,5 @@ import React, { Component, - PropTypes, } from 'react'; import { StyleSheet, @@ -10,6 +9,7 @@ import { TouchableOpacity, TouchableWithoutFeedback, } from 'react-native'; +import PropTypes from 'prop-types'; import ActionButtonItem from './ActionButtonItem'; const alignMap = { diff --git a/ActionButtonItem.js b/ActionButtonItem.js index d41f2a2..a0b2715 100644 --- a/ActionButtonItem.js +++ b/ActionButtonItem.js @@ -1,6 +1,5 @@ import React, { Component, - PropTypes, } from 'react'; import { StyleSheet, @@ -8,6 +7,7 @@ import { Animated, TouchableOpacity, } from 'react-native'; +import PropTypes from 'prop-types'; export default class ActionButtonItem extends Component { diff --git a/package.json b/package.json index feb5c4a..2d3ccbb 100644 --- a/package.json +++ b/package.json @@ -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" + } }