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 1 year 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

Deploy Preview for react-native ready!

Name Link
Latest commit 25648c40fc6e16e5a3ae0a768dd59fdfefb542bb
Latest deploy log https://app.netlify.com/sites/react-native/deploys/674990703b5dc70008269d38
Deploy Preview https://deploy-preview-4213--react-native.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Sep 10 '24 08:09 netlify[bot]