-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Nested View and Text vertical alignment issue. #31955
Comments
I think I solved this, May I have a Pull Authorization? |
Hi! I'm experimenting the same issue with the 0.65.1 RN version. @brian-reed-software In which react native version it has been released? Cheers, |
@fxhrgco Did you find any solution for this. I'm also experiencing the exact same problem. |
Hey @Syphonjr , I ended up using flex container with direction row and align-items center. But sadly it's still happening. |
I do not know it it has been solved in the last versions though. I still have the 0.65.1. Does anybody know? |
I have the same issue. Any solutions yet? |
I'm experiencing the same problem... Any solution? |
why is this still not fixed :c this is a huge issue for people who want to make a markup lib that has mentions support |
I kind of found a solution. Just use |
@SupertigerDev this still introduces some extra spacing on top which is evident in multiline text :( |
Yea its not perfect. sucks how this issue is still not fixed. |
aaagh can this be fixed already 😭 its so annoying |
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. |
Still an issue don't close it @react-native-bot 🤖 |
Bumping into the same issue. |
Description
Nesting View inside Text adds lineHeight's marginBottom to View and when we add Text inside that View it doesn't gets aligned properly.
React Native version:
System:
OS: macOS 11.4
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Memory: 55.67 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.17.0 - /usr/local/bin/node
Yarn: 1.22.10 - ~/npm-global/bin/yarn
npm: 6.14.13 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: ~0.63.4 => 0.63.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps To Reproduce
yarn ios
oryarn android
.Expected Results
The text should be in the same line aligned vertically. Like it looks when we run this example on the Web.
Snack, code example, screenshot, or link to a repository:
https://snack.expo.dev/gdbQbTirc

The text was updated successfully, but these errors were encountered: