You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My issue is closely related to #47694. Initially I didn't see 2nd modal at all (in 0.76.3), but after updating to 0.76.5 at least 2nd Modal started appearing.
But what I noticed is that hiding animation shows artifacts of the previous render of a Modal if I render conditionally.
Possible "fix\hack" that I found for now is to render both Modals, but to control visibility property. This of course is a sub-optimal solution since no one wants to render all Modals.
Please check my videos and reproduction repository.
Steps to reproduce
install app from the repo
Open ModalContent.tsx
Ensure that lines are not commented out
if (!visible) {
return null;
}
Run iOS.
Open/Hide Modals multiple times. After the first time, you'll start seeing UI glitch when it renders a Modal from previous state during Hiding transition.
Possible fix:
disable lines with
if (!visible) {
return null;
}
This will force rendering of both components, but visibility will be controlled by visibility property of the Modal.
2. Run iOS
3. Try opening/hiding Modal
4. Verify it hides/show properly without issues.
Description
My issue is closely related to #47694. Initially I didn't see 2nd modal at all (in 0.76.3), but after updating to 0.76.5 at least 2nd Modal started appearing.
But what I noticed is that hiding animation shows artifacts of the previous render of a Modal if I render conditionally.
Possible "fix\hack" that I found for now is to render both Modals, but to control
visibilityproperty. This of course is a sub-optimal solution since no one wants to render all Modals.Please check my videos and reproduction repository.
Steps to reproduce
ModalContent.tsxPossible fix:
This will force rendering of
bothcomponents, but visibility will be controlled byvisibilityproperty of theModal.2. Run iOS
3. Try opening/hiding Modal
4. Verify it hides/show properly without issues.
React Native Version
0.76.5
Affected Platforms
Runtime - iOS
Output of
npx react-native infoStacktrace or Logs
Reproducer
https://github.com/vsheyanov/react-76-4-modal-bug/tree/main
Screenshots and Videos
2nd and 3rd - during
closinganimation you can see that it shows the previous statemodal-ui-bug.mp4
modal-ui-bug-normal.mp4