Indicate server on rooms header
This commit is contained in:
parent
038e28c40b
commit
af89faef11
|
@ -59,9 +59,15 @@ export default class RoomsListView extends React.Component {
|
||||||
navigation: PropTypes.object.isRequired
|
navigation: PropTypes.object.isRequired
|
||||||
}
|
}
|
||||||
|
|
||||||
static navigationOptions = () => ({
|
static navigationOptions = () => {
|
||||||
title: 'Rooms'
|
const server = RocketChat.currentServer ? RocketChat.currentServer.replace(/^https?:\/\//, '') : '';
|
||||||
});
|
return {
|
||||||
|
title: <View style={{ height: 10, width: 200, top: -20 }}>
|
||||||
|
<Text style={{ textAlign: 'center', fontSize: 16, fontWeight: '600', top: -5 }}>Channels</Text>
|
||||||
|
<Text style={{ textAlign: 'center', fontSize: 10, top: -5 }}>{server}</Text>
|
||||||
|
</View>
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
Loading…
Reference in New Issue