react-native-toast-kit
Version:
A customizable toast/snackbar notification library for React Native
10 lines (9 loc) • 341 B
JavaScript
import { BORDER_COLORS, BACKGROUND_COLORS, TEXT_COLORS, SUBTITLE_COLORS } from './constants';
export function getToastColors(type) {
return {
toastBorderColor: BORDER_COLORS[type],
toastBackgroundColor: BACKGROUND_COLORS[type],
textColor: TEXT_COLORS[type],
subtitleColor: SUBTITLE_COLORS[type],
};
}