react-native-material-elements
Version:
React native material elements is a sophisticated UI library crafted to enhance your React Native development workflow. Designed for simplicity and elegance, nex-ui provides a rich collection of components and utilities to effortlessly create polished mob
15 lines (12 loc) • 414 B
text/typescript
import { ViewStyle } from 'react-native';
import { Theme } from '../../libraries/themes/theme';
import { CardVariations } from './Card.types';
export const cardVariation = (variation: CardVariations, colors: Theme) => {
const styles: ViewStyle = {};
if (variation === 'outlined') {
styles.borderColor = colors.gray[500];
styles.borderWidth = 0.5;
styles.borderRadius = 5;
}
return styles;
};