Circle.js
681 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import PropTypes from "prop-types";
import { ColorPropType, requireNativeComponent, ViewPropTypes } from "react-native";
import { LatLng } from "../PropTypes";
export default requireNativeComponent("AMapCircle", {
propTypes: {
...ViewPropTypes,
/**
* 圆点坐标
*/
coordinate: LatLng.isRequired,
/**
* 半径(米)
*/
radius: PropTypes.number.isRequired,
/**
* 边线宽度
*/
strokeWidth: PropTypes.number,
/**
* 边线颜色
*/
strokeColor: ColorPropType,
/**
* 填充颜色
*/
fillColor: ColorPropType,
/**
* 层级
*/
zIndex: PropTypes.number
}
});