Skip to content

Commit b5d6715

Browse files
author
pac-guerreiro
committed
docs: add avatar tooltip to example app
1 parent 844a2b1 commit b5d6715

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

example/src/Examples/TooltipExample.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Platform, StyleSheet } from 'react-native';
44
import type { StackNavigationProp } from '@react-navigation/stack';
55
import {
66
Appbar,
7+
Avatar,
78
Banner,
89
FAB,
910
List,
@@ -35,6 +36,9 @@ const TooltipExample = ({ navigation }: Props) => {
3536
<Tooltip title="Search">
3637
<Appbar.Action icon="magnify" onPress={() => {}} />
3738
</Tooltip>
39+
<Tooltip title="Username">
40+
<Avatar.Text size={24} label="U" />
41+
</Tooltip>
3842
<Tooltip title="More options">
3943
<Appbar.Action icon={MORE_ICON} onPress={() => {}} />
4044
</Tooltip>

0 commit comments

Comments
 (0)