[NEW] Show app version (#454)

This commit is contained in:
Diego Mello 2018-09-21 14:24:15 -03:00 committed by GitHub
parent 46f155d728
commit 9c007c11b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -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>
);
}