Skip to content

Not dismissed when app reloads (e.g. Expo) #1

@ChronSyn

Description

@ChronSyn

Great component, but I've noticed it suffers from the same issues with most modal components in that refreshing the app doesn't dismiss this component, nor can it be closed in these situations. The result is the overlay covering the entire UI requiring completely closing of the app and reopening.

It shouldn't be an issue in production but during development, forgetting to close the input overlay can be frustrating.

Possible fix;
Change it to a <View> that's position:fixed, and expands to window height and width. It may even be an option to provide this as a prop to choose between the existing modal component or to use a view based component.

I'll take a look at doing a PR for the issue over the next few days.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions