[RN] Fix regression handling ToolbarButton onPress

Introduced in
96e83989a5
as part of a refactor + feature.
This commit is contained in:
Saúl Ibarra Corretgé 2017-06-08 16:33:46 +02:00 committed by Любомир Маринов
parent a0054ada08
commit f6ccacb7df
1 changed files with 1 additions and 1 deletions

View File

@ -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) {