-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[FIX] TextInput breaking line #2873
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
Conversation
diegolmello
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add stories for that?
AlexAlexandre
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
storybook/stories/Assorted.js
Outdated
| import { View } from 'react-native'; | ||
| import TextInput from '../../app/containers/TextInput'; | ||
|
|
||
| const stories = storiesOf('AssortedItems', module); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a good practice imo.
We should add this test for the TextInput instead of calling "Assorted"
Proposed changes
On iOS when we combine the
textAlignproperty with theheight(with a value higher than the default) onTextInput, it tends to create an unexpected break line, causing it to look as ifmultilinewas set totrue. In order to fix this (without affecting i18n) we changed the propertypaddingHorizontaltopadding.Issue(s)
How to test or reproduce
Screenshots
Types of changes
Checklist
Further comments