2026-07-02 14:34:19 +05:30

52 lines
1.2 KiB
TypeScript

import { StyleSheet } from 'react-native';
import { typography, borderRadius, spacing } from '@theme';
export const getStyles = (colors: any) =>
StyleSheet.create({
container: {
position: 'absolute',
bottom: spacing.xxl + 20,
left: spacing.lg,
right: spacing.lg,
padding: spacing.md,
borderRadius: borderRadius.md,
flexDirection: 'row',
alignItems: 'center',
shadowColor: '#000',
shadowOffset: { width: 0, height: 4 },
shadowOpacity: 0.1,
shadowRadius: 8,
elevation: 4,
zIndex: 99999,
},
successBg: {
backgroundColor: colors.successLight,
borderColor: colors.success,
borderWidth: 1,
},
errorBg: {
backgroundColor: colors.errorLight,
borderColor: colors.error,
borderWidth: 1,
},
infoBg: {
backgroundColor: colors.primaryLight,
borderColor: colors.primary,
borderWidth: 1,
},
message: {
flex: 1,
fontSize: typography.fontSize.sm,
fontWeight: typography.fontWeight.medium,
},
successText: {
color: colors.success,
},
errorText: {
color: colors.error,
},
infoText: {
color: colors.primary,
},
});