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

TextInput does not scroll sideways when text overflows #1

Open
bjrn opened this issue Feb 17, 2017 · 3 comments
Open

TextInput does not scroll sideways when text overflows #1

bjrn opened this issue Feb 17, 2017 · 3 comments

Comments

@bjrn
Copy link

bjrn commented Feb 17, 2017

Normally when cursor reaches right side of TextInput the text scrolls as you type. Not in this example. We ran into this recently when upgrading a project to React Native 0.41.0 and found out that the height of a TextInput must be larger than 30 for the expected sideway scrolling to work.
We ended up setting height to 34 after some testing (primarily on iOS), but haven't done any deeper research on what may be causing it.

Changing height to 34 in MyTextInput.styles.js brings back text overflow in this example too.

Great article by the way!

@sbalay
Copy link
Owner

sbalay commented Feb 20, 2017

@bjrn thanks for the feedback!

@bjrn
Copy link
Author

bjrn commented Feb 20, 2017

Another thing; have you by any chance found a nice way of enabling proceeding to next Field with onSubmitEditing and blurOnSubmit={false} with redux-form?

Typically in a multi-field form I'd like to be able to press the "next"-button on the keyboard to proceed to next field, until I reach the last field, then the next-button would change to "send" or "submit". Is there a convenient way to handle that with redux-form, without resorting to ref's and getRenderedComponent() calls? (Also, ref's doesn't work with functional components either). Seems like it would be a rather common use case?

@roycedot
Copy link

can confirm had same issue and raising height of TextInput solves...

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

3 participants