I'm trying to make an Image into hexagon in react native but I don't know how to do that. Here is the expected result: hexagon
Asked
Active
Viewed 1,808 times
2
-
could you provide an example of the expected result? – Henning Hall May 17 '18 at 17:32
-
I updated my question and add the expected result. – mina May 17 '18 at 17:55
1 Answers
1
I was able to create a perfect hexagon Image View using react-native-shape-image-view dependency.
But it requires following changes before we can use it.
- change
buildToolsVersion "23.0.1"
tobuildToolsVersion "25.0.0"
- change import of PropTypes from 'react' to
import PropTypes from 'prop-types'
inside node_modules\react-native-shape-image-view\lib\hexagonView.
You have to change this import in every file where PropTypes are used. inside
node_modules\react-native-shape-image-view\lib\
You may face some linking issues in the installation of this dependency but it will work. Refer Installation instruction at given link of this dependency.

Chirag Sharma
- 888
- 6
- 18