Skip to content

Commit

Permalink
Migrate deprecated React.PropTypes (#134)
Browse files Browse the repository at this point in the history
* migrate deprecated React.PropTypes

* Replace React.PropTypes with 'prop-types'
  • Loading branch information
alphasp authored and oblador committed Jul 24, 2017
1 parent f08df35 commit 0a569ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Example/cell.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
StyleSheet,
Text,
Expand Down
3 changes: 2 additions & 1 deletion createAnimatableComponent.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,8 @@
"react": "*",
"react-native": "*",
"react-test-renderer": "15.5.4"
},
"dependencies": {
"prop-types": "^15.5.10"
}
}

0 comments on commit 0a569ae

Please sign in to comment.