-1

We have a React Native app that using third party libraries, and they generate some toasts. Now, finding a way to disable my app toast messaging service. Then, we could be handled toast messaging custom way.

Is it possible to disable React Native toast messaging permanently?

Or,

Is it possible to disable toast messaging permanently from Android Studio?

Shapon Pal
  • 1,098
  • 3
  • 16
  • 27

1 Answers1

1

In Android, without having the reference of Toast, it is not possible.

You can cancel individual Toasts by calling cancel() on the Toast object. AFAIK, there is no way for you to cancel all outstanding Toasts, though.

Ref1

Even the React native does not have any respective methods to cancel the toast.

Ref 2

Nakul
  • 1,313
  • 19
  • 26