From 60859b43cd122be3e5e23b62f502c903ef633d36 Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Thu, 10 Aug 2017 12:11:37 -0300 Subject: [PATCH] Fix header title --- app/views/roomsList.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/views/roomsList.js b/app/views/roomsList.js index 006343267..9b9610bc6 100644 --- a/app/views/roomsList.js +++ b/app/views/roomsList.js @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { Text, View, FlatList, StyleSheet } from 'react-native'; +import { Text, View, FlatList, StyleSheet, Platform } from 'react-native'; import Meteor from 'react-native-meteor'; import realm from '../lib/realm'; import RocketChat from '../lib/rocketchat'; @@ -61,11 +61,14 @@ export default class RoomsListView extends React.Component { static navigationOptions = () => { const server = RocketChat.currentServer ? RocketChat.currentServer.replace(/^https?:\/\//, '') : ''; + const textAlign = Platform.OS === 'ios' ? 'center' : 'left'; + const marginLeft = Platform.OS === 'ios' ? 0 : 20; return { - title: - Channels - {server} - + headerTitle: + Channels + {server} + , + title: 'Channels' }; }