1//in the terminal:
2npm i react-native-snackbar --save
3
4//code:
5import Snackbar from 'react-native-snackbar';
6
7Snackbar.show({
8 text: 'Hello world',
9 duration: Snackbar.LENGTH_INDEFINITE,
10 action: {
11 text: 'UNDO',
12 textColor: 'green',
13 onPress: () => { /* Do something. */ },
14 },
15});