This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
Sphere/app/components/navigation/Title.js
2016-02-06 15:49:57 +00:00

31 lines
604 B
JavaScript

import React from 'react-native';
import GlobalStyles from '../../settings/styles';
const {
StyleSheet,
Text,
View,
} = React;
var styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
},
title: {
fontSize: 20,
textAlign: 'center',
color: GlobalStyles.get('CIRCLE_NAVBAR_TEXT')
}
});
export default class NavigationTitle extends React.Component {
render() {
const title = this.props.route.title || 'Sphere';
return (
<View style={styles.container}>
<Text style={styles.title}>{ title }</Text>
</View>
);
}
}