react-native-website icon indicating copy to clipboard operation
react-native-website copied to clipboard

Update ToastAndroid with changes in Android 11

Open pafry7 opened this issue 5 months ago • 1 comments

showWithGravity and showWithGravityAndOffset from ToastAndroid does not work for text toasts as of Android 11. ToastModule uses setGravity which is no-op. More information can be found here:

An alternative implementation could use setView, but:

  1. It is depracated
  2. Custom toasts from the background are blocked

Android documentation specifies snackbar and notifications as alternatives to toasts. link

pafry7 avatar Sep 10 '24 07:09 pafry7