|
3 | 3 | // even though React doesn't support pointer events yet.
|
4 | 4 |
|
5 | 5 | import React from 'react';
|
| 6 | +import PropTypes from 'prop-types'; |
6 | 7 |
|
7 | 8 |
|
8 | 9 | // A mapping of pointer event props to event names.
|
@@ -59,16 +60,16 @@ class Pointable extends React.Component {
|
59 | 60 |
|
60 | 61 |
|
61 | 62 | Pointable.propTypes = {
|
62 |
| - tagName: React.PropTypes.string.isRequired, |
63 |
| - touchAction: React.PropTypes.oneOf(['auto', 'none', 'pan-x', 'pan-y', 'manipulation']).isRequired, |
64 |
| - onPointerMove: React.PropTypes.func, |
65 |
| - onPointerDown: React.PropTypes.func, |
66 |
| - onPointerUp: React.PropTypes.func, |
67 |
| - onPointerOver: React.PropTypes.func, |
68 |
| - onPointerOut: React.PropTypes.func, |
69 |
| - onPointerEnter: React.PropTypes.func, |
70 |
| - onPointerLeave: React.PropTypes.func, |
71 |
| - onPointerCancel: React.PropTypes.func |
| 63 | + tagName: PropTypes.string.isRequired, |
| 64 | + touchAction: PropTypes.oneOf(['auto', 'none', 'pan-x', 'pan-y', 'manipulation']).isRequired, |
| 65 | + onPointerMove: PropTypes.func, |
| 66 | + onPointerDown: PropTypes.func, |
| 67 | + onPointerUp: PropTypes.func, |
| 68 | + onPointerOver: PropTypes.func, |
| 69 | + onPointerOut: PropTypes.func, |
| 70 | + onPointerEnter: PropTypes.func, |
| 71 | + onPointerLeave: PropTypes.func, |
| 72 | + onPointerCancel: PropTypes.func |
72 | 73 | };
|
73 | 74 |
|
74 | 75 | Pointable.defaultProps = {
|
|
0 commit comments