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