Skip to content

Commit

Permalink
[RN] Fix regression handling ToolbarButton onPress
Browse files Browse the repository at this point in the history
Introduced in
jitsi@96e8398
as part of a refactor + feature.
  • Loading branch information
saghul authored and lyubomir committed Jun 8, 2017
1 parent a0054ad commit f6ccacb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react/features/toolbox/components/ToolbarButton.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f6ccacb

Please sign in to comment.