mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-30 17:29:14 +00:00
[fix] support 'onClick' prop in 'View'
This commit is contained in:
@@ -61,7 +61,7 @@ class View extends Component {
|
|||||||
|
|
||||||
const props = {
|
const props = {
|
||||||
...other,
|
...other,
|
||||||
onClick: this._handleClick,
|
onClick: this._normalizeEventForHandler(this.props.onClick),
|
||||||
onClickCapture: this._normalizeEventForHandler(this.props.onClickCapture),
|
onClickCapture: this._normalizeEventForHandler(this.props.onClickCapture),
|
||||||
onTouchCancel: this._normalizeEventForHandler(this.props.onTouchCancel),
|
onTouchCancel: this._normalizeEventForHandler(this.props.onTouchCancel),
|
||||||
onTouchCancelCapture: this._normalizeEventForHandler(this.props.onTouchCancelCapture),
|
onTouchCancelCapture: this._normalizeEventForHandler(this.props.onTouchCancelCapture),
|
||||||
|
|||||||
Reference in New Issue
Block a user