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
"[DEPRECATED] react-native-magic-modal deprecated 'hide' usage:\nCalling magicModal.hide without a modal ID is deprecated and will be removed in future versions.\nPlease provide a modal id to hide or use the preferred `useMagicModal` hook inside the modal to hide itself.\nDefaulting to hiding the last modal in the stack.",
72
-
);
73
-
}elseif(!currentModal){
74
-
// eslint-disable-next-line no-console
75
-
console.log(
76
-
`[HIDE EVENT IGNORED] No modal found with id: ${modalID}. It might have already been hidden.`,
77
-
);
78
-
returnprevModals;
79
-
}
80
-
81
-
if(prevModals.length===0){
82
-
// eslint-disable-next-line no-console
83
-
console.log(
84
-
`[HIDE EVENT IGNORED] No modals found in the stack to hide. It might have already been hidden.`,
// We need to keep this console.warn for deprecation notice
69
+
// eslint-disable-next-line no-console
70
+
console.warn(
71
+
"[DEPRECATED] react-native-magic-modal deprecated 'hide' usage:\nCalling magicModal.hide without a modal ID is deprecated and will be removed in future versions.\nPlease provide a modal id to hide or use the preferred `useMagicModal` hook inside the modal to hide itself.\nDefaulting to hiding the last modal in the stack.",
72
+
);
73
+
}elseif(!currentModal){
74
+
// eslint-disable-next-line no-console
75
+
console.log(
76
+
`[HIDE EVENT IGNORED] No modal found with id: ${modalID}. It might have already been hidden.`,
77
+
);
78
+
returnprevModals;
79
+
}
80
+
81
+
if(prevModals.length===0){
82
+
// eslint-disable-next-line no-console
83
+
console.log(
84
+
`[HIDE EVENT IGNORED] No modals found in the stack to hide. It might have already been hidden.`,
0 commit comments