react-native-hexagon-svg

2.0.4 • Public • Published

Install:

npm install react-native-hexagon-svg

Example :

import { StyleSheet, Text, View } from 'react-native'
import React from 'react'
import Hexagon from 'react-native-hexagon-svg'
export default function App() {
  return (
    <View style={styles.container}>
      <Text>App</Text>
      <Hexagon width={200} />
    </View>
  )
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center'
  }
})
Prop Type Default Description
width number 100 set the diameter of the hexagon

Package Sidebar

Install

npm i react-native-hexagon-svg

Weekly Downloads

2

Version

2.0.4

License

ISC

Unpacked Size

5.16 kB

Total Files

5

Last publish

Collaborators

  • phamha98