|
@@ -67,6 +67,10 @@ type State = {
|
67
|
67
|
* Implements {@code AbstractDialog} on react-native using {@code Prompt}.
|
68
|
68
|
*/
|
69
|
69
|
class Dialog extends AbstractDialog<Props, State> {
|
|
70
|
+ state = {
|
|
71
|
+ text: ''
|
|
72
|
+ };
|
|
73
|
+
|
70
|
74
|
/**
|
71
|
75
|
* Initailizes a new {@code Dialog} instance.
|
72
|
76
|
*
|
|
@@ -76,10 +80,6 @@ class Dialog extends AbstractDialog<Props, State> {
|
76
|
80
|
constructor(props: Object) {
|
77
|
81
|
super(props);
|
78
|
82
|
|
79
|
|
- this.state = {
|
80
|
|
- text: ''
|
81
|
|
- };
|
82
|
|
-
|
83
|
83
|
// Bind event handlers so they are only bound once per instance.
|
84
|
84
|
this._onChangeText = this._onChangeText.bind(this);
|
85
|
85
|
this._onSubmit = this._onSubmit.bind(this);
|