Skip to content

Re-rendering when textComponentProps change #183

@zachdixon

Description

@zachdixon

I'm using textComponentProps to change the text color based on a light/dark theme in my app like this:

textComponentProps={
    {
        style: {
              color: themeStore.theme == "light" ? "#333" : "#d7d7d7"
        }
    }
}

But when my theme changes, htmlview isn't updating with the new styles

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions