matchStyleValues
Checks if given styles match with the current styles object.
matchStyleValues(styles: Record<string, any>): boolean
Notes
- This method is used by TestRenderer.expectOutputAsync().
- While styles are usually applied to the rendered element in a platform-dependent way, the test renderer simply stores all properties in the styles object, which therefore has no specific type.
Parameters
- styles — A set of style properties on a single object
Return value
True, if all of the properties in the provided object match with current styles.
Related
- class TestOutputElementA class that represents a rendered output element.