Closed sidferreira closed 2 years ago
:warning: | Missing Environment Information |
---|---|
:information_source: | Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console. |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Description
This is a very peculiar issue found in https://github.com/Expensify/App/issues/5310 .
The source of the problem is, just like the title says, having an structure like the following:
If you have this structure, allow your app to run on iPad, and rotate the device/simulator.
The
<Text />
will start to grow in height continuously.It seems that having a second
<View />
around the one withmarginTop
patches the problem, but doesn't actually fixes it.Version
0.66.1
Output of
react-native info
Steps to reproduce
https://github.com/sidferreira/marginTopInText
Or use this piece of code:
Enable iPad on XCode Run on iPad Simulator Rotate the device when the app runs
Snack, code example, screenshot, or link to a repository
https://github.com/sidferreira/marginTopInText