Optional
textStyleProps: TextStyleThe initial style props for the text, which can be a single style object.
Optional
newStyles: TextStyleAdditional style props to be merged with the initial styles, which can be a single style object.
The merged text style object.
Custom hook that returns the text style based on the provided props.
This hook takes optional text style properties and returns the appropriate text style. If the input is undefined or empty, it returns an empty object. It also merges with any new styles provided.
Example