[英]Can i permanently disable toast message service in android & ios from react native or main activity?
We have a React Native app that using third party libraries, and they generate some toasts.我们有一个使用第三方库的 React Native 应用程序,它们会生成一些 toast。 Now, finding a way to disable my app toast messaging service.现在,找到一种方法来禁用我的应用程序 toast 消息服务。 Then, we could be handled toast messaging custom way.然后,我们可以通过自定义方式处理 toast 消息传递。
Is it possible to disable React Native toast messaging permanently ?是否可以永久禁用React Native toast 消息传递?
Or,或者,
Is it possible to disable toast messaging permanently from Android Studio ?是否可以从Android Studio永久禁用 toast 消息传递?
In Android, without having the reference of Toast, it is not possible.在Android中,没有Toast的引用,是不可能的。
You can cancel individual Toasts by calling cancel() on the Toast object.您可以通过在 Toast object 上调用 cancel() 来取消单个 Toast。 AFAIK, there is no way for you to cancel all outstanding Toasts, though. AFAIK,不过,您无法取消所有未完成的 Toast。
Even the React native does not have any respective methods to cancel the toast.即使是 React native 也没有任何相应的方法来取消 toast。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.