@attio/react-native-bottom-sheet-toolbox-text-input
Version:
12 lines (9 loc) • 480 B
text/typescript
import type {ViewStyle} from "react-native/types"
export function getVerticalBorderWidth(style: ViewStyle) {
const borderWidth = typeof style.borderWidth === "number" ? style.borderWidth : 0
const borderTopWidth =
typeof style.borderTopWidth === "number" ? style.borderTopWidth : borderWidth
const borderBottomWidth =
typeof style.borderBottomWidth === "number" ? style.borderBottomWidth : borderWidth
return borderTopWidth + borderBottomWidth
}