[![Version][version-badge]][package]
Note: You must use React Native >= 0.59.0
npm install @react-native-community/hooksInstallation with yarn
yarn add @react-native-community/hooksimport { useRoundedCorners } from '@boltss/react-native-hooks'
const {
onLayout,
horizontalRoundStyle,
verticalRoundStyle,
} = useRoundedCorners()
<View onLayout={onLayout} style={horizontalRoundStyle}>..</View>