@platformbuilders/react-native-ui
Version:
Platform Builders Shared Components Library
14 lines • 566 B
JavaScript
import styled from 'styled-components/native';
import { moderateScale } from 'react-native-size-matters';
import Typography from '../Typography';
import { getTheme, ifStyle } from '../../utils/helpers';
const isCentered = ifStyle('centered');
const isLarge = ifStyle('large');
export const ErrorText = styled(Typography).attrs((props) => ({
variant: isLarge('footnote', 'caption2')(props),
})) `
color: ${getTheme('failure')};
text-align: ${isCentered('center', 'left')};
margin-top: ${isLarge(0, moderateScale(1))}px;
`;
//# sourceMappingURL=styles.js.map