Answers for "react native snackbar"

1

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language