import React from 'react'; import { Text, View, TouchableOpacity, Image, StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; import I18n from '../../../i18n'; const styles = StyleSheet.create({ container: { flex: 1, alignItems: 'center', justifyContent: 'center' }, button: { flexDirection: 'row' }, title: { fontSize: 14, color: '#0C0D0F' }, server: { fontSize: 12, color: '#1D74F5' }, disclosure: { marginLeft: 3, marginTop: 2, width: 12, height: 9 }, upsideDown: { transform: [{ scaleY: -1 }] } }); const Header = ({ onPress, serverName, showServerDropdown }) => ( {I18n.t('Messages')} {serverName} ); Header.propTypes = { onPress: PropTypes.func.isRequired, serverName: PropTypes.string, showServerDropdown: PropTypes.bool.isRequired }; Header.defaultProps = { serverName: 'Rocket.Chat' }; export default Header;