Answers for "snackbar react native"

1

snackbar react native

//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. */ },
  },
});
Posted by: Guest on February-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language