Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get borderStyle () {
let { borderRadius, borderWidth } = this.props
if (this.dir === bidirectional.DIRECTION.rtl) {
borderRadius = mirrorShorthandCorners(borderRadius)
borderWidth = mirrorShorthandEdges(borderWidth)
}
return {
borderRadius: getShorthandPropValue('View', this.theme, borderRadius, 'borderRadius'),
borderWidth: getShorthandPropValue('View', this.theme, borderWidth, 'borderWidth')
}
}
get borderStyle () {
let { borderRadius, borderWidth } = this.props
if (this.dir === bidirectional.DIRECTION.rtl) {
borderRadius = mirrorShorthandCorners(borderRadius)
borderWidth = mirrorShorthandEdges(borderWidth)
}
return {
borderRadius: getShorthandPropValue('View', this.theme, borderRadius, 'borderRadius'),
borderWidth: getShorthandPropValue('View', this.theme, borderWidth, 'borderWidth')
}
}