diff --git a/index.js b/index.js index 454b753..3126f09 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,5 @@ -import React, { Component, PropTypes } from 'react'; +import React, { Component } from 'react'; +import PropTypes from 'prop-types'; import { Text } from 'react-native'; const delayShape = PropTypes.shape({ diff --git a/package.json b/package.json index f0fddf5..f1db616 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,9 @@ "Peter Mikitsh ", "maxkomarychev (https://github.com/maxkomarychev)" ], + "dependencies": { + "prop-types": "^15.5.7" + }, "peerDependencies": { "react": ">=15.4.x", "react-native": ">=0.41.x"