Skip to main content
Version: 1.0.0

Avatar.Text

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

Example banner

Implementation code

import { Avatar } from 'rn-nativeflow';

const Component = () => {
return (
<Avatar.Text
size={60}
text='YH'
/>
);
}
export default Component;

Props

PropTypeDefaultDescription
sizenumber60Set the size of the avatar
textstringIt sets the text on the avatar
bgstringIt sets the background color of the avatar
containerStyleobjectUsed to restyle the text container
textStyleobjectUsed to restyle the text