react-native-hexagon
v0.9.0
Published
hexagon image for react native apps.
Downloads
50
Readme
react-native-hexagon
hexagon image for react native apps.
Installation
npm install react-native-hexagon
Usage
import { HexagonView } from 'react-native-hexagon';
// ...
export default function App() {
const imgSource = {
uri: 'https://picsum.photos/200/300.jpg',
borderColor: '#d3d363',
borderWidth: 5,
cornerRadius: 16,
};
return (
<View style={styles.container}>
<HexagonView style={styles.avatar} source={imgSource} />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
avatar: {
height: 232,
width: 232,
alignItems: 'center',
justifyContent: 'center',
},
});
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library