message: Chore: Evaluate RegisterView - TypeScript
diff: import React from 'react';
  -import { Keyboard, StyleSheet, Text, View } from 'react-native';
  +import { Keyboard, StyleSheet, Text, View, TextInput as RNTextInput } from 'react-native';
  import RNPickerSelect from 'react-native-picker-select';
  import { connect } from 'react-redux';
  @@ -64,12 +64,12 @@ interface IProps extends IBaseScreen<OutsideParamList, 'RegisterView'> {
  class RegisterView extends React.Component<IProps, any> {
  private parsedCustomFields: any;
  - private usernameInput: any;
  - private passwordInput: any;
  - private emailInput: any;
  - private avatarUrl: any;
  + private usernameInput?: RNTextInput | null;
  + private passwordInput?: RNTextInput | null;
  + private emailInput?: RNTextInput | null;
  + private avatarUrl?: RNTextInput | null;
  - static navigationOptions = ({ route, navigation }: Partial<IProps>) => ({
  + static navigationOptions = ({ route, navigation }: IProps) => ({
  title: route?.params?.title ?? 'Rocket.Chat',
  headerRight: () => <HeaderButton.Legal testID='register-view-more' navigation={navigation} />
  });
  @@ -188,7 +188,7 @@ class RegisterView extends React.Component<IProps, any> {
  }}
  value={customFields[key]}>
  <TextInput
  - inputRef={(e: any) => {
  + inputRef={e => {
  // @ts-ignore
  this[key] = e;
  }}
  @@ -221,7 +221,7 @@ class RegisterView extends React.Component<IProps, any> {
  // @ts-ignore
  return this[array[index + 1]].focus();
  }
  - this.avatarUrl.focus();
  + this.avatarUrl?.focus();
  }}
  containerStyle={styles.inputContainer}
  theme={theme}
  @@ -250,7 +250,7 @@ class RegisterView extends React.Component<IProps, any> {
  returnKeyType='next'
  onChangeText={(name: string) => this.setState({ name })}
  onSubmitEditing={() => {
  - this.usernameInput.focus();
  + this.usernameInput?.focus();
  }}
  testID='register-view-name'
  theme={theme}
  @@ -265,7 +265,7 @@ class RegisterView extends React.Component<IProps, any> {
  returnKeyType='next'
  onChangeText={(username: string) => this.setState({ username })}
  onSubmitEditing={() => {
  - this.emailInput.focus();
  + this.emailInput?.focus();
  }}
  testID='register-view-username'
  theme={theme}
  @@ -281,7 +281,7 @@ class RegisterView extends React.Component<IProps, any> {
  keyboardType='email-address'
  onChangeText={(email: string) => this.setState({ email })}
  onSubmitEditing={() => {
  - this.passwordInput.focus();
  + this.passwordInput?.focus();
  }}
  testID='register-view-email'
  theme={theme}
  