0.9.0 • Published 1 year ago

react-native-hexagon v0.9.0

Weekly downloads
-
License
(MIT AND Apache-2...
Repository
github
Last release
1 year ago

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',
  },
});

image

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

0.9.0

1 year ago

0.8.0

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago