Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jose24San opened this issue Jun 19, 2018 · 1 comment
Open

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

Jose24San opened this issue Jun 19, 2018 · 1 comment

Comments

@Jose24San
Copy link

Jose24San commented Jun 19, 2018

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"

@elemnus
Copy link

elemnus commented Aug 30, 2018

I'm not experiencing any problems like that even with a numeric keyboardType. I guess, it's your default keyboard app on your device.
Here's my version:
"react-native": "0.55.0", "react-native-autofocus": "^0.0.7","react": "16.3.0-alpha.0"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants