UNPKG

swiftui-react-native

Version:

A React Native component library inspired by SwiftUI

17 lines (14 loc) 310 B
import { Color } from '../colors'; export type Border = { color?: Color; width?: number; }; export const getBorder = (border: Border) => { if (!border) return null; return { ...(border.color && { borderColor: 'black', }), ...(border.width && { borderWidth: border.width }), }; };