Skip to content

React Native's Modal mock contains a bug #508

Closed
@vanGalilea

Description

@vanGalilea

So it seems like React Native's Modal is being mocked wrong.

When rendered in tests the Modal and its children are constantly showing in the tree, also when set to be not visible.
Just figured out how to fix this issue in my examples repo: https://github.com/vanGalilea/react-native-testing

Does somebody know whether the Modal is actually mocked by RN or by RNTL.
If it's mocked by RNTL, where can I update the Modal mock? so I can create a PR.

Cheers!

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