archive
/
zxcvbn-app
Archived
1
Fork 0
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.
zxcvbn-app/src/navigation/Title.tsx

31 lines
578 B
TypeScript

import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
} as React.ViewStyle,
title: {
fontSize: 20,
textAlign: 'center',
color: '#FFF'
} as React.TextStyle
});
export default class Title extends Component<any, any> {
render() {
const title = this.props.route.title || 'zxcvbn';
return (
<View style={styles.container}>
<Text style={styles.title}>{ title }</Text>
</View>
);
}
}