[RN] Fix assigning Dialog state
This commit is contained in:
parent
3633f2aac5
commit
2306e26287
|
@ -67,6 +67,10 @@ type State = {
|
||||||
* Implements {@code AbstractDialog} on react-native using {@code Prompt}.
|
* Implements {@code AbstractDialog} on react-native using {@code Prompt}.
|
||||||
*/
|
*/
|
||||||
class Dialog extends AbstractDialog<Props, State> {
|
class Dialog extends AbstractDialog<Props, State> {
|
||||||
|
state = {
|
||||||
|
text: ''
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initailizes a new {@code Dialog} instance.
|
* Initailizes a new {@code Dialog} instance.
|
||||||
*
|
*
|
||||||
|
@ -76,10 +80,6 @@ class Dialog extends AbstractDialog<Props, State> {
|
||||||
constructor(props: Object) {
|
constructor(props: Object) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
this.state = {
|
|
||||||
text: ''
|
|
||||||
};
|
|
||||||
|
|
||||||
// Bind event handlers so they are only bound once per instance.
|
// Bind event handlers so they are only bound once per instance.
|
||||||
this._onChangeText = this._onChangeText.bind(this);
|
this._onChangeText = this._onChangeText.bind(this);
|
||||||
this._onSubmit = this._onSubmit.bind(this);
|
this._onSubmit = this._onSubmit.bind(this);
|
||||||
|
|
Loading…
Reference in New Issue