[RN] Fix assigning Dialog state

This commit is contained in:
Lyubo Marinov 2017-11-29 10:21:49 -06:00
parent 3633f2aac5
commit 2306e26287
1 changed files with 4 additions and 4 deletions

View File

@ -67,6 +67,10 @@ type State = {
* Implements {@code AbstractDialog} on react-native using {@code Prompt}.
*/
class Dialog extends AbstractDialog<Props, State> {
state = {
text: ''
};
/**
* Initailizes a new {@code Dialog} instance.
*
@ -76,10 +80,6 @@ class Dialog extends AbstractDialog<Props, State> {
constructor(props: Object) {
super(props);
this.state = {
text: ''
};
// Bind event handlers so they are only bound once per instance.
this._onChangeText = this._onChangeText.bind(this);
this._onSubmit = this._onSubmit.bind(this);