UNPKG

@fruits-chain/react-native-xiaoshu

Version:
56 lines (52 loc) 1.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createStyles = void 0; var _reactNative = require("react-native"); const createStyles = themeVar => { return _reactNative.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 } }); }; exports.createStyles = createStyles; //# sourceMappingURL=style.js.map