75 lines
1.9 KiB
TypeScript
75 lines
1.9 KiB
TypeScript
import { StyleSheet } from 'react-native';
|
|
import { typography, spacing, borderRadius, shadow } from '@theme';
|
|
|
|
export const getStyles = (colors: any) =>
|
|
StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: colors.background,
|
|
},
|
|
mapPlaceholder: {
|
|
flex: 1,
|
|
backgroundColor: colors.inputBg,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
},
|
|
placeholderText: {
|
|
fontSize: typography.fontSize.sm,
|
|
color: colors.placeholder,
|
|
},
|
|
headerBanner: {
|
|
position: 'absolute',
|
|
top: spacing.lg,
|
|
left: spacing.lg,
|
|
right: spacing.lg,
|
|
backgroundColor: colors.primary,
|
|
borderRadius: borderRadius.md,
|
|
paddingVertical: spacing.md,
|
|
paddingHorizontal: spacing.lg,
|
|
alignItems: 'center',
|
|
...shadow.md,
|
|
zIndex: 10,
|
|
},
|
|
headerText: {
|
|
color: colors.white,
|
|
fontWeight: typography.fontWeight.bold,
|
|
fontSize: typography.fontSize.md,
|
|
textAlign: 'center',
|
|
},
|
|
bottomCard: {
|
|
position: 'absolute',
|
|
bottom: spacing.xxl,
|
|
left: spacing.lg,
|
|
right: spacing.lg,
|
|
backgroundColor: colors.cardBg,
|
|
borderRadius: borderRadius.lg,
|
|
padding: spacing.xl,
|
|
...shadow.lg,
|
|
borderWidth: 1,
|
|
borderColor: colors.border,
|
|
zIndex: 10,
|
|
},
|
|
cardTitle: {
|
|
fontSize: typography.fontSize.sm,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.textSecondary,
|
|
textTransform: 'uppercase',
|
|
marginBottom: spacing.xs,
|
|
},
|
|
storeName: {
|
|
fontSize: typography.fontSize.lg,
|
|
fontWeight: typography.fontWeight.bold,
|
|
color: colors.text,
|
|
marginBottom: spacing.sm,
|
|
},
|
|
storeAddress: {
|
|
fontSize: typography.fontSize.sm,
|
|
color: colors.textSecondary,
|
|
lineHeight: 20,
|
|
marginBottom: spacing.lg,
|
|
},
|
|
navigateButton: {
|
|
width: '100%',
|
|
},
|
|
});
|