Skip to content

Commit

Permalink
Import PropTypes form separate package (#14)
Browse files Browse the repository at this point in the history
* Import PropTypes form separate package

* Add prop-types to dependencies

https://github.com/facebook/prop-types#how-to-depend-on-this-package
  • Loading branch information
sobstel authored and TaylorBriggs committed Oct 9, 2017
1 parent ed82254 commit bf1b5b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 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({
Expand Down
3 changes: 3 additions & 0 deletions package.json
Expand Up @@ -22,6 +22,9 @@
"Peter Mikitsh <peter.mikitsh@gmail.com>",
"maxkomarychev (https://github.com/maxkomarychev)"
],
"dependencies": {
"prop-types": "^15.5.7"
},
"peerDependencies": {
"react": ">=15.4.x",
"react-native": ">=0.41.x"
Expand Down

0 comments on commit bf1b5b6

Please sign in to comment.