浏览代码

[RN] Fix input dialog value bug

master
Bettenbuk Zoltan 6 年前
父节点
当前提交
c503187dc1

+ 1
- 1
react/features/base/dialog/components/native/BaseDialog.js 查看文件

@@ -73,7 +73,7 @@ class BaseDialog<P: Props, S: State> extends AbstractDialog<P, S> {
73 73
 
74 74
     _onCancel: () => void;
75 75
 
76
-    _onSubmit: () => boolean;
76
+    _onSubmit: ?string => boolean;
77 77
 
78 78
     /**
79 79
      * Renders the content of the dialog.

+ 2
- 2
react/features/base/dialog/components/native/InputDialog.js 查看文件

@@ -85,7 +85,7 @@ class InputDialog extends BaseDialog<Props, State> {
85 85
                 <View style = { brandedDialog.buttonWrapper }>
86 86
                     <TouchableOpacity
87 87
                         disabled = { okDisabled }
88
-                        onPress = { this._onSubmit }
88
+                        onPress = { this._onSubmitValue }
89 89
                         style = { [
90 90
                             brandedDialog.button,
91 91
                             brandedDialog.buttonFarLeft,
@@ -116,7 +116,7 @@ class InputDialog extends BaseDialog<Props, State> {
116 116
         });
117 117
     }
118 118
 
119
-    _onSubmit: ?string => boolean;
119
+    _onSubmit: (?string) => boolean;
120 120
 
121 121
     _onSubmitValue: () => boolean;
122 122
 

正在加载...
取消
保存