Skip to content

Commit

Permalink
React.PropTypes is deprecated as of React v15.5 [see](https://faceboo…
Browse files Browse the repository at this point in the history
…k.github.io/react/docs/typechecking-with-proptypes.html)

Changed prop_types.js to use the npm library ‘prop-types’ instead of react’s PropTypes
  • Loading branch information
toriaezunama authored and David Schovanec committed Jun 5, 2017
1 parent 8828f5e commit ecb17a2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"babel-preset-react": "6.5.0",
"css-loader": "0.23.1",
"iscroll": "5.2.0",
"prop-types": "^15.5.8",
"react": "15.0.2",
"react-dom": "15.0.2",
"react-hot-api": "0.5.0",
Expand Down
2 changes: 1 addition & 1 deletion src/prop_types.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PropTypes } from 'react'
import PropTypes from 'prop-types';

const { bool, number, string, func, shape, object, instanceOf, oneOf, oneOfType, arrayOf } = PropTypes

Expand Down
12 changes: 9 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ date-now@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b"

debug@2.6.1:
debug@2.6.1, debug@^2.2.0:
version "2.6.1"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.1.tgz#79855090ba2c4e3115cc7d8769491d58f0491351"
dependencies:
Expand All @@ -1100,7 +1100,7 @@ debug@2.6.3:
dependencies:
ms "0.7.2"

debug@^2.1.1, debug@^2.2.0, debug@~2.2.0:
debug@^2.1.1, debug@~2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da"
dependencies:
Expand Down Expand Up @@ -1305,7 +1305,7 @@ faye-websocket@~0.11.0:
dependencies:
websocket-driver ">=0.5.1"

fbjs@^0.8.0:
fbjs@^0.8.0, fbjs@^0.8.9:
version "0.8.12"
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.12.tgz#10b5d92f76d45575fd63a217d4ea02bea2f8ed04"
dependencies:
Expand Down Expand Up @@ -2585,6 +2585,12 @@ promise@^7.1.1:
dependencies:
asap "~2.0.3"

prop-types@^15.5.8:
version "15.5.8"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.5.8.tgz#6b7b2e141083be38c8595aa51fc55775c7199394"
dependencies:
fbjs "^0.8.9"

proxy-addr@~1.1.3:
version "1.1.4"
resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-1.1.4.tgz#27e545f6960a44a627d9b44467e35c1b6b4ce2f3"
Expand Down

0 comments on commit ecb17a2

Please sign in to comment.