Skip to content

Is there a way to get component size? #635

@aryella-lacerda

Description

@aryella-lacerda

Ask your Question

Hello! My use case is this: I'd like to use this lib to check if a button is accessible in that its dimensions are at least 44 pt x 44 pt. But I'm having trouble figuring out how to do this. 🤔 I tried using jest-native, but their matcher toHaveStyle() apparently only picks up styles that are explicitly defined.

Is there a way to get the component's size, even when width and height aren't explicitly defined in their styles?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions