[Android] Bad fontFamily
and color
styles merging with 3 Text nesting levels
#31826
Labels
API: StyleSheet
Component: Text
Stale
There has been a lack of activity on this issue and it may be closed soon.
Description
Under very specific conditions, nested text styles such as
color
andfontSize
are not applied correctly on Android. Below are screenshots of the same component rendered in Android (left) and iOS (right). Notice the following inconsistencies in Android:fontSize
;color
style.The code to reproduce those screens is provided in the "reproduction" section
React Native version:
Steps To Reproduce
Expected Results
The rendered components should look identical on iOS and Android (see screenshots above).
Snack, code example, screenshot, or link to a repository:
The bug requires a specific set of conditions to happen. The following tests have been performed on the referred snack:
fontFamily
monospace for all styles → could not reproduce bug.children=""
) → could not reproduce bug.LINK TO SNACK
NB: I want to stress that the reproduction might look a bit "heavy" in terms of rendered nodes, but try to cut some nodes off and the issue vanishes.
The text was updated successfully, but these errors were encountered: