Replies: 1 comment
-
|
Apologies for the delay. We are a new team working to get RNE back to a working state. But in short, the answer is yes! You can customize the Basic usage: <Avatar size={80} rounded source={{ uri: 'image-url' }}>
<Avatar.Accessory name="edit" type="material" />
</Avatar>With custom background color: <Avatar size={80} rounded source={{ uri: 'image-url' }}>
<Avatar.Accessory
name="check"
type="material"
style={{ backgroundColor: '#4caf50' }}
/>
</Avatar>Different icon types: // Material Icons
<Avatar.Accessory name="add" type="material" />
// FontAwesome
<Avatar.Accessory name="camera" type="font-awesome" />
// Ionicons
<Avatar.Accessory name="heart" type="ionicon" />The Note: In v5.0.0-beta, TypeScript may show errors for these props, but I believe they work correctly at runtime. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering if there is a built in way to change the icon of the avatar accessory view? Thank you
Beta Was this translation helpful? Give feedback.
All reactions