From 6f1150ca99a4a5189b6d043cdba68b5f1f7a04c7 Mon Sep 17 00:00:00 2001 From: Manuel Scholz Date: Mon, 8 Sep 2025 16:15:16 +0200 Subject: [PATCH 1/2] docs: add note about text color alpha limitation --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index a18d0f5..5f8e11a 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,24 @@ Also, follow instructions [here](https://github.com/react-native-community/react --- +--- +## Text color problem +The `actions.foreColor` action allows changing the text color. + +**Important limitations regarding alpha (transparency):** + +- Using alpha in `foreColor` is **not reliably supported** in WebView. +- Passing `rgba(...)` works partially: the color may appear slightly darker, but **true transparency is not applied**. +- Hex colors with alpha are ignored and may result in inconsistent colors. +- Fully transparent black (`rgba(0,0,0,0)`) can render as a default color (e.g., red) due to the deprecated `` tag. +- Attempting to normalize the HTML output (e.g., convert `rgba` back to hex) is computationally expensive and not recommended. + +**Recommendation:** +- Avoid using alpha in `foreColor` whenever possible. +- If transparency is needed, pass `rgba(...)` directly, but be aware of the limitations. + +--- + ## `RichEditor` The editor component. Simply place this component in your view hierarchy to receive a fully functional Rich text Editor. From 538518f482ab2ef279f9f3321fdece81ccb4569e Mon Sep 17 00:00:00 2001 From: Manuel Scholz Date: Mon, 8 Sep 2025 19:19:49 +0200 Subject: [PATCH 2/2] docs: remove unnecessary line --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 5f8e11a..8f078f3 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,6 @@ Also, follow instructions [here](https://github.com/react-native-community/react --- ---- ## Text color problem The `actions.foreColor` action allows changing the text color.