Open rayan1810 opened 3 years ago
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 transform: [{translate: 10}]
on the element you want to align. change that 10
to whatever
I kind of found a solution. Just use
transform: [{translate: 10}]
on the element you want to align. change that10
to whatever
@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
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
export default function App() { return (
); }
const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: "#fff", alignItems: "center", justifyContent: "center", }, outsideText: { backgroundColor: "#cecece", }, insideView: { backgroundColor: "#fcc9", }, });