UNPKG

@fruits-chain/react-native-xiaoshu

Version:
34 lines • 971 B
import { StyleSheet } from 'react-native'; import { varCreator as varCreatorCell } from '../cell/style'; import Theme from '../theme'; export const varCreator = TOKENS => { return { collapse_transition_duration: TOKENS.animation_duration_base, collapse_background_color: TOKENS.white, collapse_icon_color: TOKENS.gray_6, collapse_icon_size: TOKENS.font_size_5 }; }; export const styleCreator = (cv, TOKENS) => { const CV_CELL = Theme.createVar(TOKENS, varCreatorCell); return StyleSheet.create({ collapse: { overflow: 'hidden', backgroundColor: cv.collapse_background_color }, body: { position: 'absolute', left: 0, right: 0, top: 0 }, body_padding: { paddingHorizontal: CV_CELL.cell_padding_horizontal, paddingVertical: CV_CELL.cell_padding_horizontal }, divider: { marginHorizontal: CV_CELL.cell_padding_horizontal } }); }; //# sourceMappingURL=style.js.map