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
Hi, I have migrated from NativeBase to Gluestack V2 recently and really impressed on it. But currently, when migrating the Toast, I realize that I cannot access the toast instance directly without using the hook. So my question request is to expose a function to get the toast instance, it should be a singleton instance across the app lifecycle.
Problem Statement
My app currently first some toasts inside of the axios interceptors and I want to keep these calls.
Proposed Solution or API
Expose a helper function to get the toast instance: getToastInstance(): { show, close, closeAll, ... }.
Alternatives
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
Hi, I have migrated from NativeBase to Gluestack V2 recently and really impressed on it. But currently, when migrating the Toast, I realize that I cannot access the toast instance directly without using the hook. So my question request is to expose a function to get the toast instance, it should be a singleton instance across the app lifecycle.
Problem Statement
My app currently first some toasts inside of the axios interceptors and I want to keep these calls.
Proposed Solution or API
Expose a helper function to get the toast instance:
getToastInstance(): { show, close, closeAll, ... }
.Alternatives
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: