expo toast code example
Example: expo toast
import React from 'react';
import { View, StyleSheet, ToastAndroid, Button, StatusBar } from 'react-native';
export default function App() {
function showToast() {
ToastAndroid.show('Request sent successfully!', ToastAndroid.SHORT);
}
return (
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
paddingTop: StatusBar.currentHeight,
backgroundColor: '#6638f0',
padding: 8,
},
});