Skip to content

Commit c194b28

Browse files
author
Sebastian Mader
committed
Fixed React 15.5.0 propTypes deprecation warning.
1 parent 4e324eb commit c194b28

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"eslint": "^1.6.0",
4242
"eslint-config-airbnb": "^0.1.0",
4343
"eslint-plugin-react": "^3.5.1",
44+
"prop-types": "^15.5.8",
4445
"react": "^0.14.0",
4546
"react-dom": "^0.14.0",
4647
"rifraf": "^2.0.2",

src/NativeListener.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {Component, PropTypes} from 'react';
1+
import {Component} from 'react';
2+
import PropTypes from 'prop-types';
23
import ReactDOM from 'react-dom';
34
const events = [
45
'KeyDown',

0 commit comments

Comments
 (0)