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
}
