From 3da05c48b015b89a2c2b1839b7c20ea41c2639e7 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 28 Jun 2016 15:04:17 -0700 Subject: [PATCH] [fix] support 'onClick' prop in 'View' --- src/components/View/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/View/index.js b/src/components/View/index.js index a17c8e56..04ccfaef 100644 --- a/src/components/View/index.js +++ b/src/components/View/index.js @@ -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),