Avatar.Text
Avatar.Text components render a pre-styled avatar with a text which can easily be re-style by using props.
Implementation code
import { Avatar } from 'rn-nativeflow';
const Component = () => {
return (
<Avatar.Text
size={60}
text='YH'
/>
);
}
export default Component;
Props
Prop | Type | Default | Description |
---|---|---|---|
size | number | 60 | Set the size of the avatar |
text | string | It sets the text on the avatar | |
bg | string | It sets the background color of the avatar | |
containerStyle | object | Used to restyle the text container | |
textStyle | object | Used to restyle the text |