You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It could be helpful to have way to validate the structure of a TextStyleSet object to make sure that all values are in the correct format expected by the component. I have been working in Typescript where the compiler will warn me of any issues but for many users, they will be using JS where they won't necessarily get any warnings. Additionally, end users might be setting styles directly using text-based JSON.
Perhaps this validate function would not be part of TaggedText but a standalone function that could produce output that could be displayed to the end user without throwing an error.
The text was updated successfully, but these errors were encountered:
It could be helpful to have way to validate the structure of a
TextStyleSet
object to make sure that all values are in the correct format expected by the component. I have been working in Typescript where the compiler will warn me of any issues but for many users, they will be using JS where they won't necessarily get any warnings. Additionally, end users might be setting styles directly using text-based JSON.Perhaps this validate function would not be part of
TaggedText
but a standalone function that could produce output that could be displayed to the end user without throwing an error.The text was updated successfully, but these errors were encountered: