import { StyleSheet, Dimensions } from 'react-native'; import { darkTheme } from '@metamask/design-tokens'; const { colors } = darkTheme; const marginWidth = 16; const padding = 16; const toastWidth = Dimensions.get('window').width - marginWidth * 2; /** * Style sheet for Toast component. * * @returns StyleSheet object. */ const styleSheet = StyleSheet.create({ base: { position: 'absolute', width: toastWidth, left: marginWidth, bottom: 0, backgroundColor: colors.background.alternative, borderRadius: 4, padding, flexDirection: 'row', }, avatar: { marginRight: 8, }, labelsContainer: { justifyContent: 'center', }, label: { color: colors.text.default, }, }); export default styleSheet;