native-base
Version:
Essential cross-platform UI components for React Native
18 lines (17 loc) • 372 B
text/typescript
export const resolveStackStyleInput = (variant: any, color: any) => {
if (variant === 'underlined') {
return {
outlineWidth: '0',
boxShadow: `0 1px 0 0 ${color}`,
};
} else if (variant === 'unstyled') {
return {
outlineWidth: 0,
};
} else {
return {
outlineWidth: '0',
boxShadow: `0 0 0 1px ${color}`,
};
}
};