import {StyleSheet, TextStyle, ViewStyle} from 'react-native'; import {Theme} from '../../style'; export interface ToastStyle { container: ViewStyle; innerContainer: ViewStyle; innerWrap: ViewStyle; iconToast: ViewStyle; textToast: ViewStyle; content: TextStyle; image: TextStyle; centering: ViewStyle; } export default (theme: Theme) => StyleSheet.create({ container: { position: 'absolute', top: 0, left: 0, bottom: 0, right: 0, backgroundColor: 'transparent', justifyContent: 'center', alignItems: 'center', zIndex: theme.toast_zindex, }, innerContainer: { backgroundColor: 'transparent', }, innerWrap: { alignItems: 'center', backgroundColor: theme.toast_fill, minWidth: 100, }, iconToast: { borderRadius: theme.radius_lg, padding: theme.v_spacing_lg, }, textToast: { borderRadius: theme.radius_sm, paddingVertical: theme.v_spacing_md, paddingHorizontal: theme.v_spacing_lg, }, content: { color: theme.color_text_base_inverse, fontSize: theme.font_size_subhead, textAlign: 'center', lineHeight: 24 }, image: { marginBottom: theme.v_spacing_xs, }, centering: { alignItems: 'center', justifyContent: 'center', padding: theme.v_spacing_md, }, });