@fruits-chain/react-native-xiaoshu
Version:
🌈 React Native UI library
35 lines (33 loc) • 1.09 kB
JavaScript
import { StyleSheet } from 'react-native';
export const varCreator = TOKENS => {
return {
selector_min_height: 270,
selector_option_text_line_height: 50,
selector_option_text_font_size: TOKENS.font_size_4,
selector_option_text_color: TOKENS.gray_8,
selector_icon_selected_color: TOKENS.brand_6,
selector_body_padding_horizontal: TOKENS.space_3
};
};
export const styleCreator = cv => {
return StyleSheet.create({
option_item: {
paddingHorizontal: cv.selector_body_padding_horizontal,
height: cv.selector_option_text_line_height,
flexDirection: 'row',
alignItems: 'center' // backgroundColor: '#f30', // to test ui
},
option_item_text: {
flex: 1,
lineHeight: cv.selector_option_text_line_height,
fontSize: cv.selector_option_text_font_size,
color: cv.selector_option_text_color // backgroundColor: '#f30', // to test ui
},
btn: {
height: 60,
justifyContent: 'center',
paddingHorizontal: cv.selector_body_padding_horizontal
}
});
};
//# sourceMappingURL=style.js.map