[RN] Fix regression handling ToolbarButton onPress
Introduced in
96e83989a5
as part of a refactor + feature.
This commit is contained in:
parent
a0054ada08
commit
f6ccacb7df
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue