Avatar.Image
Avatars can be used to represent people in a graphical way.
How to use
import * as React from 'react';
import {Avatar} from '@gyri/native-ui-components';
const MyComponent = () => (
<Avatar.Text size={24} source={require('../assets/avatar.png')} />
);
Props
| # | Name | Data type | Default value | Values | Description |
|---|---|---|---|---|---|
| 1 | size | number | 64 | Size for avatar. | |
| 2 | label (required) | string | Initials to show as the text in the Avatar. | ||
| 3 | labelStyle | Style for the title. | |||
| 4 | labelColor | Style for text container. |
For more detail visit https://callstack.github.io/react-native-paper/docs/components/Avatar/AvatarText