[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:
parent
c320540fa3
commit
3633f2aac5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue