Skip to content

Commit

Permalink
[NEW] Show app version (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolmello authored Sep 21, 2018
1 parent 46f155d commit 9c007c1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions app/containers/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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>
);
}
Expand Down

0 comments on commit 9c007c1

Please sign in to comment.