Skip to main content

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

#NameData typeDefault valueValuesDescription
1sizenumber64Size for avatar.
2source (required)anyImage 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