@ReactProp(name = "zIndex", defaultFloat = 1.0f) public void setZIndex(AirMapCircle view, float zIndex) { view.setZIndex(zIndex); }
@ReactProp(name = "strokeColor", defaultInt = Color.RED, customType = "Color") public void setStrokeColor(AirMapCircle view, int color) { view.setStrokeColor(color); }
@ReactProp(name = "radius", defaultDouble = 0) public void setRadius(AirMapCircle view, double radius) { view.setRadius(radius); }
@ReactProp(name = "strokeWidth", defaultFloat = 1f) public void setStrokeWidth(AirMapCircle view, float widthInPoints) { float widthInScreenPx = metrics.density * widthInPoints; // done for parity with iOS view.setStrokeWidth(widthInScreenPx); }
@ReactProp(name = "center") public void setCenter(AirMapCircle view, ReadableMap center) { view.setCenter(new LatLng(center.getDouble("latitude"), center.getDouble("longitude"))); }