import React from 'react'; import { View } from 'react-native'; import { getVersion } from 'react-native-device-info'; import { ListItem, Switch } from 'react-native-elements'; import { Column, Text } from '../../components/ui'; import { Theme } from '../../components/ui/styleUtils'; import { MainRouteProps } from '../../routes/main'; import { EditableListItem } from '../../components/EditableListItem'; import { MessageOverlay } from '../../components/MessageOverlay'; import { Credits } from './Credits'; import { Revoke } from './Revoke'; import { useProfileScreen } from './ProfileScreenController'; import { useTranslation } from 'react-i18next'; import { LanguageSelector } from '../../components/LanguageSelector'; import i18next, { SUPPORTED_LANGUAGES } from '../../i18n'; const LanguageSetting: React.FC = () => { const { t } = useTranslation('ProfileScreen'); return ( {t('language')} {SUPPORTED_LANGUAGES[i18next.language]} } /> ); }; export const ProfileScreen: React.FC = (props) => { const { t } = useTranslation('ProfileScreen'); const controller = useProfileScreen(props); return ( {t('bioUnlock')} {t('authFactorUnlock')} {t('logout')} {t('version')}: {getVersion()} {controller.backendInfo.application.name !== '' ? ( {controller.backendInfo.application.name}:{' '} {controller.backendInfo.application.version} MOSIP: {controller.backendInfo.config['mosip.host']} ) : null} ); };