Skip to content
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

Background color style does not work with nested text #2

Open
jobpaardekooper opened this issue Mar 31, 2024 · 0 comments
Open

Background color style does not work with nested text #2

jobpaardekooper opened this issue Mar 31, 2024 · 0 comments

Comments

@jobpaardekooper
Copy link
Contributor

The following code displays the text with a white background:

<UITextView selectable uiTextView >
    <UITextView selectable uiTextView style={{ backgroundColor: "#ff0000" }} >test 1</UITextView>
    <UITextView selectable uiTextView style={{ backgroundColor: "#00ff00" }} >test 2</UITextView>
</UITextView>

Using a single, non-nested component with a backgroundColor works:

<UITextView selectable uiTextView style={{ backgroundColor: "#ff0000" }} >test 1</UITextView>

Also giving the container a background color works. But I want to give only a part of the text a background. Other styles like color are working as expected. Just seems to be an issue with backgroundColor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant