Avatar
Extends:
react-native~Component → Avatar
Constructor Summary
Public Constructor | ||
public |
constructor(props: object) |
Public Constructors
public constructor(props: object) source
Params:
Name | Type | Attribute | Description |
props | object | ||
props.icon | enum(ICON_NAME) | Icon name |
|
props.src | string | Image src |
|
props.size | number |
|
Avatar size |
props.color | string |
|
Color of icon of Avatar. Accept a color string such as RGBA,RGB,HEX. |
props.primaryColor | string |
|
Background color of Avatar. Only use with a icon prop. Accept a color string such as RGBA,RGB,HEX. |