Open HyoJeong1019 opened 1 month 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.73.9. 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. |
⚠️ Newer Version of React Native is Available! ℹ️ 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.
I have upgraded to version 0.73.9, but the same issue persists.
I have upgraded to version 0.73.9, but the same issue persists.
Is the issue also happening on 0.74?
Is the issue also happening on 0.74?
I have upgraded to version 0.74.0 as you suggested, but the same issue persists, as shown in the attached image.
I also encountered this issue, which only occurs on devices with Android 14, causing the text to appear not centered. Setting lineHeight can solve this issue, but if lineHeight is set globally and the lineHeight of the nested Text component is different, the text will be truncated.
Description
This issue only occurs on Android.
After creating a React Native project and writing the Text component and ThemedText component respectively in the index.js file, I noticed that there is padding at the top of the default Text component.
I found that setting the includeFontPadding property to false is suggested as a solution to a similar problem. However, this only removes the bottom padding, and the top padding remains unaffected.
Could you please provide assistance on how to remove the top padding of the Text component as well? Any guidance or suggestions would be greatly appreciated.
Steps to reproduce
React Native Version
0.73.9
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/HyoJeong1019/rn-text
Screenshots and Videos