Skip to content

fix: allow Menu to reopen when hide animation callback never fires - #5051

Open
ErfanBagheri404 wants to merge 1 commit into
callstack:mainfrom
ErfanBagheri404:fix/menu-cannot-reopen
Open

fix: allow Menu to reopen when hide animation callback never fires#5051
ErfanBagheri404 wants to merge 1 commit into
callstack:mainfrom
ErfanBagheri404:fix/menu-cannot-reopen

Conversation

@ErfanBagheri404

Copy link
Copy Markdown

Fixes #4763

On React Native >= 0.80 the hide animation completion callback is not delivered, so prevRendered.current stayed true and the menu could never be shown again after being dismissed.

Reset prevRendered.current before starting the hide animation instead of in its completion callback.

On React Native >= 0.80 the hide animation completion callback is not
delivered, so prevRendered.current stayed true and the menu could never
be shown again after being dismissed.

Reset prevRendered.current before starting the hide animation instead of
in its completion callback.

Fixes callstack#4763
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Menu component closes and fails to open again on re-render

1 participant