react-native-super-ellipse-mask
v1.0.7
Published
Apple flavored smooth corners for React Native
Downloads
27
Maintainers
Readme
Apple flavored smooth corners for React Native (iOS only).
Screenshots
Install
yarn add react-native-super-ellipse-mask
Link
Automatic
react-native link react-native-super-ellipse-mask
Manual
iOS
- In XCode, in the project navigator, right click
Libraries
>Add Files to [your project's name]
- Go to
node_modules
>react-native-super-ellipse-mask
and addRNSuperEllipseMask.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNSuperEllipseMask.a
to your project'sBuild Phases
>Link Binary With Libraries
- Run your project (
Cmd+R
)
Usage
<SuperEllipseMask radius={30}>
<View
style={{
width: 200,
height: 300,
backgroundColor: 'black',
}}
/>
</SuperEllipseMask>
Props
radius
object | number
: Sets the corner radius.number
: uniform corner radius.object
:{topLeft, topRight, bottomRight, bottomLeft}
Contribute
Found a bug? File an issue
Already know how to fix it? Open a Pull Request