-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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 backgroundColor transparency issue #27183
Comments
For solid colors the issue doesn't appear. What I think is happening is that there's a text container inside the TextInput that is getting the same backgroundColor as the TextInput instead of It feels like the 2 backgrounds are stacking |
A workaround I went for while waiting for a response is to put the |
#7964 might give some background on this |
The issue #7964 is closed but not solved yet, |
Does it work if you do something like this <TextInput style={{ backgroundColor: "#0006" }}>
<Text style={{ backgroundColor: "transparent" }}>
{yourTextContent}
</Text>
</TextInput> |
Didn't know you could do that ... |
Yeah, so I guess it looks like a RN bug. I suspect it's putting the background colour on the text attributes as well as the text input itself. Is this something you'd want to look into? |
If you mean do I want it to be fixed .. then yes Thanks for the help identifying the issue @jacobp100 |
@jacobp100 @Sofianio I would like to take this up if this is not taken. |
@jeswinsimon That'd be great! 👍 |
This issue seems to be happening in |
That's good news @jeswinsimon ... any idea when this fix will be public? |
Hello,
I'm having a weird behavior when setting TextInput backgroundColor with transparency, the text gets some kind of background, See Screenshot
I'm using the latest React Native release tested on iOS 12.1
React Native version:
Steps To Reproduce
Describe what you expected to happen:
I expected to see text without the "highlight"
Snack, code example, screenshot, or link to a repository:
In snack expo it works fine but not in RN
<TextInput style={{height: 50, backgroundColor: '#0006'}}/>
Another user reported this issue #26494 but it was closed for not following the template
I hope this one is accepted and investigated
Thanks in advance.
The text was updated successfully, but these errors were encountered: