react native navigation snack code example
Example: react native snackbar
//in the terminal:
npm i react-native-snackbar --save
//code:
import Snackbar from 'react-native-snackbar';
Snackbar.show({
text: 'Hello world',
duration: Snackbar.LENGTH_INDEFINITE,
action: {
text: 'UNDO',
textColor: 'green',
onPress: () => { /* Do something. */ },
},
});