@lad-tech/mobydick-core
Version:
React Native components library focused on usability, accessibility and developer experience
73 lines (69 loc) • 1.69 kB
text/typescript
import {Dimensions} from 'react-native';
import {createStyles} from '../../../styles';
const stylesCreate = createStyles(({spaces, colors}) => {
const {width} = Dimensions.get('window');
return {
overlayStyle: {
justifyContent: 'flex-end',
},
container: {
backgroundColor: colors.BgPrimary,
borderRadius: spaces.Space12,
justifyContent: 'center',
alignItems: 'center',
width: width - spaces.Space8 * 2,
paddingHorizontal: spaces.Space20,
paddingVertical: spaces.Space24,
marginVertical: spaces.Space20,
},
closeButton: {
alignSelf: 'flex-end',
justifyContent: 'center',
position: 'absolute',
top: spaces.Space16,
right: spaces.Space16,
zIndex: 2,
},
alertView: {
borderRadius: 100,
padding: spaces.Space12,
backgroundColor: colors.AdditionalSixthSoft,
},
text: {
marginTop: spaces.Space24,
textAlign: 'center',
},
textContent: {
marginTop: spaces.Space12,
marginBottom: spaces.Space8,
},
title: {
textAlign: 'center',
},
description: {
textAlign: 'center',
paddingTop: spaces.Space8,
},
verticalButtonsView: {
marginTop: spaces.Space20,
alignSelf: 'stretch',
alignItems: 'center',
},
horizontalButtonsView: {
flexDirection: 'row',
paddingTop: spaces.Space20,
},
horizontalLeftButton: {
flex: 1,
marginRight: spaces.Space6,
},
horizontalRightButton: {
flex: 1,
marginLeft: spaces.Space6,
},
imageView: {
marginBottom: spaces.Space4,
},
};
});
export default stylesCreate;