Skip to main content
Version: 1.0.0

Avatar.Image

Avatar.Image components render a pre-styled avatar with a image which can easily be re-style by using props.

Example banner

Implementation code

import { Avatar } from 'rn-nativeflow';

const Component = () => {
return (
<Avatar.Image
size={60}
source={require('./example.jpg')}
// source={{uri: 'https://www.xyz.com/user.jpg'}} or you can use like this
/>
);
}
export default Component;

Props

PropTypeDefaultDescription
sizenumber60Set the size of the avatar
sourceobjectSet the image source bu using require('') or {uri: ''}
bgstringIt sets the background color of the avatar
containerStyleobjectUsed to restyle the image container
imageStyleobjectUsed to restyle the image