|
1 | 1 | import React, { useState } from 'react' |
2 | 2 | import { Linking, Platform, Pressable, Text, View } from 'react-native' |
| 3 | +import * as Application from 'expo-application' |
3 | 4 | import { Avatar } from '@kolking/react-native-avatar' |
4 | 5 | import { AppDispatch, RootState, toggleSideMenu } from '@/store' |
5 | 6 | import { useDispatch, useSelector } from 'react-redux' |
6 | 7 | import { useTranslation } from 'react-i18next' |
7 | 8 | import { useRouter } from 'expo-router' |
8 | | -import { CloseIcon, LikeIcon, LogoutIcon } from '@/components/svg' |
| 9 | +import { CloseIcon, InfoIcon, LikeIcon, LogoutIcon } from '@/components/svg' |
9 | 10 | import { useAuth, useLogout } from '@/hooks' |
10 | 11 | import PopupMenu, { PopupMenuSeparator } from '@/components/PopupMenu' |
11 | 12 |
|
@@ -93,6 +94,18 @@ const NameContainer: React.FC<NameContainerProps> = ({ name, nameColor, displayN |
93 | 94 | </> |
94 | 95 | )} |
95 | 96 |
|
| 97 | + {Platform.OS !== 'web' && ( |
| 98 | + <> |
| 99 | + <View className='flex-row items-center py-4'> |
| 100 | + <InfoIcon width={24} height={24} stroke={theme.textColor} /> |
| 101 | + <Text className="text-base font-medium px-[10px] font-['Inter']" style={{ color: theme.textColor }}> |
| 102 | + {t('version')} {Application.nativeApplicationVersion} |
| 103 | + </Text> |
| 104 | + </View> |
| 105 | + <PopupMenuSeparator /> |
| 106 | + </> |
| 107 | + )} |
| 108 | + |
96 | 109 | <Pressable |
97 | 110 | className='flex-row items-center py-4' |
98 | 111 | onPress={async () => { |
|
0 commit comments