Open normanzb opened 23 hours ago
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.74.5. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
tested on 0.74.5, still reproducible
tested on 0.74.5, still reproducible
Can you test it on 0.76.0 RC2 also?
0.76.0 RC2
hi @cortinico it is partially fixed in 0.76.0 RC2.
when text size in iOS setting is smaller, the line-height does not shrink anymore (correct):
however when text size in iOS setting is larger, the line-height still increases (incorrect, the text in screenshot is really small, should not cause line-height to increase):
Description
The line-height renders differently when iOS text size setting changed, the line-height with a absolute value should stay the same no matter how iOS text size is set.
Steps to reproduce
<View style={{ width: 10, height: 32, backgroundColor: 'red' }} />
element with height set to 32.<Text style={{ lineHeight: 32 }}>here is a demo text</Text>
element with line-height also set 32.expected result:
the 2 elements still renders with same height
actual result:
the 2 elements renders with different height, with the text element being smaller.
React Native Version
0.74.5
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/@normanmodprotocol/frowning-violet-bagel
Screenshots and Videos
default ios font size setting (correct):
ios font size set to smallest (incorrect):
ios font size set to largest: