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

Fix Content calculateLeft & calculateRight #2654

Conversation

francescopersico
Copy link
Contributor

@francescopersico francescopersico commented Apr 3, 2019

On iPhoneX paddingLeft and paddingRight get calculated using calculateLeft and calculateRight functions.
The problem occurs when in the theme of the Content component you are setting paddingLeft or paddingRight to 0 because the functions evaluated this.props.style.paddingLeft ? to false. This patch uses this.props.style.paddingLeft !== undefined ? to avoid "false negative".

Please release a new version as soon as you can because this problem is blocking.

Error

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

Successfully merging this pull request may close these issues.

2 participants