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.Image size={24} source={require('../assets/avatar.png')} />
);
Props
| # | Name | Data type | Default value | Values | Description |
|---|---|---|---|---|---|
| 1 | size | number | 64 | Size for avatar. | |
| 2 | source (required) | any | Image to display for the Avatar. It accepts a standard React Native Image source prop Or a function that returns an Image. |
For more detail visit https://callstack.github.io/react-native-paper/docs/components/Avatar/AvatarImage