Skip to content

max-prokopenko/react-native-ellipse-view

Repository files navigation

react-native-ellipse-view

View smoothly rounded with Bézier curve for React Native.

Installation

npm install @lowkey/react-native-ellipse-view

or

yarn add @lowkey/react-native-ellipse-view

Usage

import EllipseView from "@lowkey/react-native-ellipse-view";

// ...

<EllipseView style={styles.ellipseViewContainer}>
    <Image source={require('./example.jpeg')} style={styles.avatar} />
</EllipseView>

Props

Property Type Default Required Description
roundness number (0-1) 0.45 false Changes the "borderRadius" of the ellipse

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT