Add version info in menu

This commit is contained in:
Vincent BRIDIER 2023-01-04 10:10:25 +01:00
parent 044f6c41d5
commit bd1d2be557
No known key found for this signature in database
GPG key ID: 8571BFA20420D512

View file

@ -13,6 +13,8 @@ import { TouchableOpacity, View, Image, Text, TextInput, Alert, DrawerLayoutAndr
import Icon from 'react-native-vector-icons/FontAwesome5';
import FlashMessage, { showMessage } from 'react-native-flash-message';
import * as SplashScreen from 'expo-splash-screen';
// Application infos
import * as Application from 'expo-application';
// i18n
import i18n from "./I18n";
// FileSytem
@ -110,11 +112,14 @@ class App extends React.Component {
<Text style={styles.drawer.btnText}>{i18n.t('global.logout')}</Text>
</TouchableOpacity>
</View>
<Button
title={i18n.t('global.close')}
color={this.state.mainColor}
onPress={() => this.state.drawerRef.current.closeDrawer()}
/>
<View>
<Text style={{ marginBottom: 10 }}>Version : {Application.nativeApplicationVersion}</Text>
<Button
title={i18n.t('global.close')}
color={this.state.mainColor}
onPress={() => this.state.drawerRef.current.closeDrawer()}
/>
</View>
</View>
);