UNPKG

@fruits-chain/react-native-xiaoshu

Version:
46 lines 1.47 kB
import { StyleSheet } from 'react-native'; export const createStyles = themeVar => { return StyleSheet.create({ toast: { // backgroundColor: '#f30', // to test ui flex: 1, width: '100%', alignItems: 'center', paddingTop: themeVar.toast_position_top_distance, paddingBottom: themeVar.toast_position_bottom_distance }, inner: { backgroundColor: themeVar.toast_background_color, borderRadius: themeVar.toast_border_radius, paddingHorizontal: themeVar.toast_default_padding_horizontal, paddingVertical: themeVar.toast_default_padding_vertical, maxWidth: themeVar.toast_max_width, minHeight: themeVar.toast_default_min_height, width: themeVar.toast_default_width, justifyContent: 'center' }, inner_type_text: { borderRadius: themeVar.toast_text_border_radius, lineHeight: themeVar.toast_line_height, paddingHorizontal: themeVar.toast_text_padding_horizontal, paddingVertical: themeVar.toast_text_padding_vertical, minWidth: themeVar.toast_text_min_width, minHeight: 0, width: 'auto' }, loading: { alignItems: 'center', padding: themeVar.padding_base }, text: { fontSize: themeVar.toast_font_size, color: themeVar.toast_text_color, textAlign: 'center', marginTop: themeVar.padding_xs }, text_top_0: { marginTop: 0 } }); }; //# sourceMappingURL=style.js.map