From f6ccacb7dfc62b2a7f9cf50c15b02df42e58039f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Thu, 8 Jun 2017 16:33:46 +0200 Subject: [PATCH] [RN] Fix regression handling ToolbarButton onPress Introduced in https://github.com/jitsi/jitsi-meet/commit/96e83989a54974499decf6985fd17c8990984db8 as part of a refactor + feature. --- react/features/toolbox/components/ToolbarButton.native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/toolbox/components/ToolbarButton.native.js b/react/features/toolbox/components/ToolbarButton.native.js index 885f83ebd..13b134c68 100644 --- a/react/features/toolbox/components/ToolbarButton.native.js +++ b/react/features/toolbox/components/ToolbarButton.native.js @@ -37,7 +37,7 @@ class ToolbarButton extends AbstractToolbarButton { _renderButton(children) { const props = {}; - 'onClick' in this.props && (props.onPress = () => { + 'onClick' in this.props && (props.onPress = event => { const action = this.props.onClick(event); if (action) {