Lines Matching refs:toast
2 title: Display a popup toast
3 description: Learn how to create a toast popup in an Expo project.
9 ## What is a toast?
14 Documentation](https://developer.android.com/guide/topics/ui/notifiers/toasts): "A toast provides
19 To present a toast, we recommend two solutions: an API from the `react-native` package and a library
30 To show a basic toast with `ToastAndroid`, import `ToastAndroid` from the `'react-native'` package
68 alt="Pixel 3a showing toast message in an app"
72 There are many other ways to configure your toast position, duration, and gravity options. Read the
75 ## Cross-platform: `react-native-root-toast`
77 Since iOS doesn't have a built-in toast feature, React Native developers have to implement their own
78 cross-platform toast libraries.
79 [`react-native-root-toast`](https://github.com/magicismight/react-native-root-toast) is one such
88 …t-toast`, you have to [install the module](https://github.com/magicismight/react-native-root-toast…
104 Then, anywhere in your app, you can `import Toast from 'react-native-root-toast';` and call
109 let toast = Toast.show('Request failed to send.', {
115 Toast.hide(toast);
119 `react-native-root-toast` also has a component API if you want to manage your toasts declaratively.
125 …nce and behavior](https://github.com/magicismight/react-native-root-toast#reference) of your toast.
126 See the package [repository](https://github.com/magicismight/react-native-root-toast) to learn more.