Skip to content

autoFocus not working for input of keyboardType='numeric' #7

@Jose24San

Description

@Jose24San

Great package! I am having a funky issue where the TextInput component loses the returnKey so I can't hit 'enter' when I finish typing a number so that the focus can change to the next input. Changing the keyboardType to : numeric or phone-pad seems to be breaking the returnKeyLabel. It works fine for keyboardType default and email-address.

Here is what my code looks like

<Form style={styles.formContainer}>
          <TextInput
              style={styles.input}
              placeholder="Weeks"
              keyboardType="numeric"
          />
          <TextInput
              style={styles.input}
              placeholder="Days"
          />
          <TextInput
              style={styles.input}
              placeholder="Program Name"
          />
</Form>

It is a pretty simple package so I am not sure where the issue is happening? Here is what versions I am using in my project.

"react-native": "^0.55.4", "react": "^16.4.0", "react-native-autofocus": "0.0.6"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions