diff --git a/src/ui/auth/ForgotPasswordScreen.js b/src/ui/auth/ForgotPasswordScreen.js
index cb379a8f..21f098f4 100644
--- a/src/ui/auth/ForgotPasswordScreen.js
+++ b/src/ui/auth/ForgotPasswordScreen.js
@@ -42,6 +42,7 @@ class ForgotPasswordScreen extends React.Component {
string,
- autofocus: ?boolean,
+ autoFocus?: boolean,
};
type State = {
@@ -38,20 +38,11 @@ export default class TextInput extends React.Component {
return this.state.value.trim();
}
- componentDidMount() {
- if (this.props.autofocus) {
- this._input && this._input.focus();
- }
- }
-
render() {
const { styles: extraStyles, valueTransformer, ...inputProps } = this.props;
return (
{
- this._input = view;
- }}
className={css(styles.input, extraStyles)}
{...inputProps}
onChange={this._onValueChange}