import React from 'react'; import PropTypes from 'prop-types'; import colors from '../config/colors'; import { StyleSheet, View, Text } from 'react-native'; const LoginHeader = props => { const { headerTitle, } = props; return ( {headerTitle} ); }; LoginHeader.defaultProps = { headerTitle: '', }; LoginHeader.propTypes = { headerTitle: PropTypes.string, }; const styles = StyleSheet.create({ container: { backgroundColor: colors.secondary, flex: 1, padding: 0, }, header: { flexDirection: 'column', paddingLeft: 20, height: 200, justifyContent: 'center', backgroundColor: '#3083FF', }, headerTitle: { fontSize: 28, fontWeight: 'normal', color: '#fff' }, }); export default LoginHeader;