[fix] support 'onClick' prop in 'View'

This commit is contained in:
Nicolas Gallagher
2016-06-28 15:04:17 -07:00
parent f33312a4dd
commit 3da05c48b0

View File

@@ -61,7 +61,7 @@ class View extends Component {
const props = {
...other,
onClick: this._handleClick,
onClick: this._normalizeEventForHandler(this.props.onClick),
onClickCapture: this._normalizeEventForHandler(this.props.onClickCapture),
onTouchCancel: this._normalizeEventForHandler(this.props.onTouchCancel),
onTouchCancelCapture: this._normalizeEventForHandler(this.props.onTouchCancelCapture),