Skip to content

Conversation

@gerzonc
Copy link
Contributor

@gerzonc gerzonc commented Feb 4, 2021

Proposed changes

On iOS when we combine the textAlign property with the height (with a value higher than the default) on TextInput, it tends to create an unexpected break line, causing it to look as if multiline was set to true. In order to fix this (without affecting i18n) we changed the property paddingHorizontal to padding.

Issue(s)

How to test or reproduce

Screenshots

Before After
image image

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

Copy link
Member

@diegolmello diegolmello left a 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 AlexAlexandre self-requested a review August 23, 2021 14:26
Copy link
Contributor

@AlexAlexandre AlexAlexandre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@diegolmello diegolmello changed the title [FIX] Input breaking line [FIX] TextInput breaking line Aug 27, 2021
import { View } from 'react-native';
import TextInput from '../../app/containers/TextInput';

const stories = storiesOf('AssortedItems', module);
Copy link
Member

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"

@diegolmello diegolmello merged commit f5bbdb8 into develop Aug 27, 2021
@diegolmello diegolmello deleted the fix.email-input-break-line branch August 27, 2021 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants