Apple flavored smooth corners for React Native
Apple flavored smooth corners for React Native (iOS only).
yarn add react-native-super-ellipse-mask
react-native link react-native-super-ellipse-mask
Libraries
> Add Files to [your project's name]
node_modules
> react-native-super-ellipse-mask
and add RNSuperEllipseMask.xcodeproj
libRNSuperEllipseMask.a
to your project's Build Phases
> Link Binary With Libraries
Cmd+R
)<SuperEllipseMask radius={30}>
<View
style={{
width: 200,
height: 300,
backgroundColor: 'black',
}}
/>
</SuperEllipseMask>
radius
object | number
: Sets the corner radius.
number
: uniform corner radius.object
: {topLeft, topRight, bottomRight, bottomLeft}
Found a bug? File an issue
Already know how to fix it? Open a Pull Request