[NEW] Show app version (#454)
This commit is contained in:
parent
46f155d728
commit
9c007c11b7
|
@ -18,6 +18,7 @@ import log from '../utils/log';
|
|||
import I18n from '../i18n';
|
||||
import { NavigationActions } from '../Navigation';
|
||||
import scrollPersistTaps from '../utils/scrollPersistTaps';
|
||||
import DeviceInfo from '../utils/deviceInfo';
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
|
@ -73,6 +74,13 @@ const styles = StyleSheet.create({
|
|||
},
|
||||
currentServerText: {
|
||||
fontWeight: 'bold'
|
||||
},
|
||||
version: {
|
||||
marginHorizontal: 5,
|
||||
marginBottom: 5,
|
||||
fontWeight: '600',
|
||||
color: '#292E35',
|
||||
fontSize: 13
|
||||
}
|
||||
});
|
||||
const keyExtractor = item => item.id;
|
||||
|
@ -365,6 +373,9 @@ export default class Sidebar extends Component {
|
|||
{!this.state.showServers ? this.renderNavigation() : null}
|
||||
{this.state.showServers ? this.renderServers() : null}
|
||||
</ScrollView>
|
||||
<Text style={styles.version}>
|
||||
{DeviceInfo.getReadableVersion()}
|
||||
</Text>
|
||||
</SafeAreaView>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue