Pārlūkot izejas kodu

[RN] Fix regression handling ToolbarButton onPress

Introduced in
96e83989a5
as part of a refactor + feature.
j8
Saúl Ibarra Corretgé 8 gadus atpakaļ
vecāks
revīzija
f6ccacb7df

+ 1
- 1
react/features/toolbox/components/ToolbarButton.native.js Parādīt failu

@@ -37,7 +37,7 @@ class ToolbarButton extends AbstractToolbarButton {
37 37
     _renderButton(children) {
38 38
         const props = {};
39 39
 
40
-        'onClick' in this.props && (props.onPress = () => {
40
+        'onClick' in this.props && (props.onPress = event => {
41 41
             const action = this.props.onClick(event);
42 42
 
43 43
             if (action) {

Notiek ielāde…
Atcelt
Saglabāt