From 0a569ae05c006b11b2969bd429aec3d96e95590c Mon Sep 17 00:00:00 2001 From: alphasp Date: Tue, 25 Jul 2017 07:44:55 +0800 Subject: [PATCH] Migrate deprecated React.PropTypes (#134) * migrate deprecated React.PropTypes * Replace React.PropTypes with 'prop-types' --- Example/cell.js | 3 ++- createAnimatableComponent.js | 3 ++- package.json | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Example/cell.js b/Example/cell.js index 83af9e9..c5b20a6 100644 --- a/Example/cell.js +++ b/Example/cell.js @@ -1,4 +1,5 @@ -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { StyleSheet, Text, diff --git a/createAnimatableComponent.js b/createAnimatableComponent.js index 0a5ef43..c3b98fe 100644 --- a/createAnimatableComponent.js +++ b/createAnimatableComponent.js @@ -1,4 +1,5 @@ -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { Animated, Easing } from 'react-native'; import wrapStyleTransforms from './wrapStyleTransforms'; import getStyleValues from './getStyleValues'; diff --git a/package.json b/package.json index 0f114dd..31f8ea7 100644 --- a/package.json +++ b/package.json @@ -62,5 +62,8 @@ "react": "*", "react-native": "*", "react-test-renderer": "15.5.4" + }, + "dependencies": { + "prop-types": "^15.5.10" } }