Open diegolmello opened 7 months ago
@fabOnReact https://github.com/fabOnReact/react-native-improved doesn't fix it (tested on old arch, of course)
Text is cutting off vertically on Android 13+.
I assume this is not happening on Android 12 right?
@cortinico Right, tested on SDK 31 (see attached screenshot). Haven't tested on SDK 32 though.
I believe measure does not calculate correct height for ༼ つ ◕_◕ ༽つ
The similar issue on XiaoMi 12 Pro
.
System font settings
The result
Codes
return <View style={{flex: 1, backgroundColor: 'white', justifyContent: 'center', alignItems: 'center'}}>
<Text
allowFontScaling={false}
style={{
fontSize: 24,
fontWeight: 'bold',
color: HFColors.black,
backgroundColor: 'red',
}}>
00:00
</Text>
</View>;
fontSize
sets to a value less than 20, for example, fontSize: 16, everything works well.fontWeight
, everything works well.00:00
, everything works well.How can this kind of bug linger for this long? The cut off at the line end can cause serious issues, like number of finances. Do Facebook's own apps have this issue?
Description
Text is cutting off vertically on Android 13+. Tested both on old and new arch.
There's a couple of issues with similar topics (none mentioning new arch, nor with an easy repro):
Steps to reproduce
༼ つ ◕_◕ ༽つ test
text anywhereReact Native Version
0.73.4
Affected Platforms
Runtime - Android
Areas
Fabric - The New Renderer
Output of
npx react-native info
Reproducer
https://snack.expo.dev/@diegolmello/gimme-text-cutoff
Screenshots and Videos
SDK 33
SDK 31