mirror of
https://github.com/jellyfin/jellyfin-expo.git
synced 2024-11-22 21:49:46 +00:00
Remove unavailable expo version
This commit is contained in:
parent
faa703ce43
commit
7fadd9bcbb
@ -7,7 +7,6 @@
|
||||
import { useNavigation } from '@react-navigation/native';
|
||||
import Constants from 'expo-constants';
|
||||
import React, { useContext } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { StyleSheet, View } from 'react-native';
|
||||
import { Text, ThemeContext } from 'react-native-elements';
|
||||
|
||||
@ -16,7 +15,6 @@ import { getAppName } from '../utils/Device';
|
||||
|
||||
const AppInfoFooter = () => {
|
||||
const navigation = useNavigation();
|
||||
const { t } = useTranslation();
|
||||
const { theme } = useContext(ThemeContext);
|
||||
|
||||
const textStyle = {
|
||||
@ -38,9 +36,6 @@ const AppInfoFooter = () => {
|
||||
<Text testID='app-version' style={textStyle}>
|
||||
{`${Constants.nativeAppVersion} (${Constants.nativeBuildVersion})`}
|
||||
</Text>
|
||||
<Text testID='expo-version' style={textStyle}>
|
||||
{t('settings.expoVersion', { version: Constants.expoVersion })}
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
@ -29,7 +29,6 @@ jest.mock('@react-navigation/native', () => {
|
||||
|
||||
describe('AppInfoFooter', () => {
|
||||
it('should render correctly', () => {
|
||||
Constants.expoVersion = '39.0.0';
|
||||
Constants.nativeAppVersion = '1.0.0';
|
||||
Constants.nativeBuildVersion = '1.0.0.0';
|
||||
Device.osName = 'Test OS'; // eslint-disable-line no-import-assign, import/namespace
|
||||
@ -45,6 +44,5 @@ describe('AppInfoFooter', () => {
|
||||
fireEvent(appName, 'onLongPress');
|
||||
expect(mockNavigate).toHaveBeenCalledWith(Screens.DevSettingsScreen);
|
||||
expect(getByTestId('app-version')).toHaveTextContent('1.0.0 (1.0.0.0)');
|
||||
expect(getByTestId('expo-version')).toHaveTextContent('Expo Version: 39.0.0');
|
||||
});
|
||||
});
|
||||
|
@ -65,8 +65,7 @@
|
||||
"lightTheme": "Use Light Theme",
|
||||
"systemTheme": "Use System Theme",
|
||||
"rotationLock": "Rotation Lock",
|
||||
"tabLabels": "Show Tab Labels",
|
||||
"expoVersion": "Expo Version: {{version}}"
|
||||
"tabLabels": "Show Tab Labels"
|
||||
},
|
||||
"links": {
|
||||
"website": "Jellyfin Website",
|
||||
|
Loading…
Reference in New Issue
Block a user