Add version info in menu
This commit is contained in:
parent
044f6c41d5
commit
bd1d2be557
1 changed files with 10 additions and 5 deletions
|
|
@ -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>
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue