Commit 57df96f8 authored by Qiu Xiang's avatar Qiu Xiang

完善 marker icon 类型声明

parent b29650e5
......@@ -29,7 +29,25 @@ export default class Marker extends Component {
* Root View 必须是 Overlay,且需设置 style width
*/
icon: PropTypes.oneOfType([
PropTypes.string,
Platform.select({
android: PropTypes.oneOf([
'azure',
'blue',
'cyan',
'green',
'magenta',
'orange',
'red',
'rose',
'violet',
'yellow',
]),
ios: PropTypes.oneOf([
'red',
'green',
'purple',
]),
}),
PropTypes.func,
]),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment