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

32 lines
604 B
JavaScript
Raw Normal View History

2016-02-06 15:07:29 +00:00
import React from 'react-native';
2016-02-06 15:49:57 +00:00
import GlobalStyles from '../../settings/styles';
2016-02-06 15:07:29 +00:00
2016-02-06 15:49:57 +00:00
const {
2016-02-06 15:07:29 +00:00
StyleSheet,
Text,
View,
} = React;
var styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
},
title: {
2016-02-06 15:49:57 +00:00
fontSize: 20,
2016-02-06 15:07:29 +00:00
textAlign: 'center',
2016-02-06 15:49:57 +00:00
color: GlobalStyles.get('CIRCLE_NAVBAR_TEXT')
2016-02-06 15:07:29 +00:00
}
});
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>
);
}
}