   var isHorizontal: NSNumber? {
     set {
       if let horizontal = newValue {
-        self._isHorizontal = RCTConvert.BOOL(horizontal)
-        setupHexagonImageView(self)
+        if self._isHorizontal != RCTConvert.BOOL(horizontal) {
+          self._isHorizontal = RCTConvert.BOOL(horizontal)
+          self.setNeedsDisplay()
+        }
       }
     }
     get {

  private var _isHorizontal: Bool = false
  private var _size: CGFloat = 0
  
  private var backgroundLayer = CAShapeLayer()
  private var borderLayer = CAShapeLayer()
    
  var size: NSNumber? {
    set {
      let width = RCTConvert.CGFloat(newValue)
      self.frame = CGRect(x: 0, y: 0, width: width, height: width)
        setupHexagonImageView(self)
    }
    get {
      return nil

      
      return path
  }
  
  override class func layerClass() -> AnyClass {
    return CAShapeLayer.self
  }
}

