-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Textinput's outline appears behind the label if Text component is passed to label #4114
Comments
I'll start working on this today soon, please assign this issue to me |
Thanks @Lev-Shapiro! |
I just checked my code that was merged and it doesn't seem to have any problems with background labeling. Could you share why you decided to comment on this issue? Anyway, I'll be happy to fix this |
I found that passing RNP Text component to the label props will still have this problem occurred, while using RN Text component is totally fine. Also, the problem I mentioned happens when I add { borderRadius: 30 } to the TextInput component to make it close to design, label background seems to be overflow. I understand I can remove the white background by using colors: { background: 'transparent' }, but it will not leave a field for that. Is there any possible approach to fix? |
Yes, creating a new issue and giving code to reproduce the problem |
Current behaviour
If Text component is passed to the label of a TextInput, the outline isn't hidden properly and appears behind the label.
Expected behaviour
Acts the same as if a string is passed to the label.
How to reproduce?
Preview
How it looks like when Text component is passed to label
How it looks like when string is passed to label
Your Environment
The text was updated successfully, but these errors were encountered: