[RN] Fix assigning Dialog state

75bf7638b3 introduced this regression, state must
be assigned as an object, even though one would think it's automagically
initialized to an object. Oh well!
This commit is contained in:
Saúl Ibarra Corretgé 2017-11-29 14:41:13 +01:00 committed by Lyubo Marinov
parent c320540fa3
commit 3633f2aac5
1 changed files with 3 additions and 1 deletions

View File

@ -76,7 +76,9 @@ class Dialog extends AbstractDialog<Props, State> {
constructor(props: Object) {
super(props);
this.state.text = '';
this.state = {
text: ''
};
// Bind event handlers so they are only bound once per instance.
this._onChangeText = this._onChangeText.bind(this);