@boltss/react-native-hooks
v1.0.1
Published
Convenience hooks for React-Native
Downloads
3
Readme
Bolt React Native Hooks
[![Version][version-badge]][package]
Note: You must use React Native >= 0.59.0
Installation with npm
npm install @react-native-community/hooks
Installation with yarn
yarn add @react-native-community/hooks
API
useRoundedCorners
import { useRoundedCorners } from '@boltss/react-native-hooks'
const {
onLayout,
horizontalRoundStyle,
verticalRoundStyle,
} = useRoundedCorners()
<View onLayout={onLayout} style={horizontalRoundStyle}>..</View>