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
i use a unique bottom sheet to display some given child content,
i a given situation, i need to update the whole content of the modal
for example user is in a preview modal who display a picture with a message (like "woow some one send you a gift") , then when we press "ok show it" button it should open a modal with another kind of content.
on android it work smooth, i open the modal with first type, close it, re present it with another data and it work. on ios noo, it display at first time , and the second time no. i have to put "settimeout" with 1000ms to make it work . not best approche and maybe on slow device it's not enough
Version
v5
Reanimated Version
v3
Gesture Handler Version
v2
Platforms
iOS
What happened?
i use a unique bottom sheet to display some given child content,
i a given situation, i need to update the whole content of the modal
for example user is in a preview modal who display a picture with a message (like "woow some one send you a gift") , then when we press "ok show it" button it should open a modal with another kind of content.
on android it work smooth, i open the modal with first type, close it, re present it with another data and it work. on ios noo, it display at first time , and the second time no. i have to put "settimeout" with 1000ms to make it work . not best approche and maybe on slow device it's not enough
for this i use this mmkv context
and call it like this
i'm trying to use promised or chained call to make it work better like this
reloadInfoModal: () => {
const {infoModalRef} = get();
if (infoModalRef?.current) {
infoModalRef.current.close().then(() => {
infoModalRef.current.present(props);
});
}
}
any tips or good practise ? thank you very much
Reproduction steps
call this two function is short time , present will no reopen the modal
Reproduction sample
https://snack.expo.dev/8wJnJ--U_dbI4L3mVIFeV
The text was updated successfully, but these errors were encountered: