Closed pedrobernardina closed 4 years ago
This snippet works
Snackbar.show({ title: message, duration: Snackbar.LENGTH_INDEFINITE, // backgroundColor: dangerColour, action: { title: 'X', color: 'white', }, }); }
This one does not
Snackbar.show({ title: message, duration: Snackbar.LENGTH_INDEFINITE, // backgroundColor: dangerColour, action: { title: 'X', // color: 'white', }, }); }
// package.json "react-native": "0.61.5", "react-native-snackbar": "^2.0.4",
Thank you for the report @pedrobernardina! This has been fixed and released in v2.0.5. The action button now defaults to white and does not require a color to be explicitly passed.
This snippet works
This one does not