mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-03-27 01:34:17 +08:00
[fix] support 'onClick' prop in 'View'
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user