A component that represents a user.
import React from 'react';
import { Avatar } from 'monalisa-ui';
const Example = () => (
<Avatar
source={{ uri: 'https://picsum.photos/id/434/200/200' }}
/>
);
export default Example;
import React from 'react';
import { View } from 'react-native';
import { Avatar } from 'monalisa-ui';
const Example = () => (
<View>
<Avatar
source={{ uri: 'https://picsum.photos/id/434/200/200' }}
width={80}
height={80}
circle
/>
<Avatar
source={{ uri: 'https://picsum.photos/id/434/200/200' }}
width={80}
height={80}
rounded
/>
<Avatar
source={{ uri: 'https://picsum.photos/id/434/200/200' }}
style={{ marginLeft: 20 }}
/>
</View>
);
export default Example;
import React from 'react';
import { AvatarGroup } from 'monalisa-ui';
const groups = [
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
];
const Example = () => (
<AvatarGroup
data={groups}
/>
);
export default Example;
import React from 'react';
import { AvatarGroup } from 'monalisa-ui';
const groups = [
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
];
const Example = () => (
<AvatarGroup
data={groups}
/>
);
export default Example;
import React from 'react';
import { AvatarGroup } from 'monalisa-ui';
const groups = [
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
];
const Example = () => (
<AvatarGroup
data={groups}
appearance="grid"
/>
);
export default Example;
import React from 'react';
import { AvatarGroup } from 'monalisa-ui';
const groups = [
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
{ source: { uri: 'https://picsum.photos/id/434/200/200' } },
];
const Example = () => (
<AvatarGroup
data={groups}
appearance="grid"
maxCount={4}
/>
);
export default Example;