Fixed crash on login input change

This commit is contained in:
Arnaud Vergnet 2020-06-29 16:02:25 +02:00
parent b66e50eaf8
commit 98168b560b

View file

@ -56,6 +56,7 @@ class LoginScreen extends React.Component<Props, State> {
constructor(props) { constructor(props) {
super(props); super(props);
this.passwordInputRef = React.createRef();
this.onEmailChange = this.onInputChange.bind(this, true); this.onEmailChange = this.onInputChange.bind(this, true);
this.onPasswordChange = this.onInputChange.bind(this, false); this.onPasswordChange = this.onInputChange.bind(this, false);
this.props.navigation.addListener('focus', this.onScreenFocus); this.props.navigation.addListener('focus', this.onScreenFocus);