NewscoutHomeHeader.js 696 B

12345678910111213141516171819202122232425262728
  1. import { StyleSheet, Text, TouchableWithoutFeedback, View } from 'react-native'
  2. import React from 'react'
  3. import NewscoutLogo from '../../molecules/NewscoutLogo'
  4. import fonts from '../../../theme/fonts'
  5. import Header from '../../atoms/Header'
  6. import colors from '../../../theme/colors'
  7. const NewscoutHomeHeader = ({ children, headerStyle}) => {
  8. return (
  9. <Header style={[styles.header,headerStyle]}>
  10. <NewscoutLogo style={styles.headerLogo} />
  11. {children}
  12. </Header>
  13. )
  14. }
  15. export default NewscoutHomeHeader
  16. const styles = StyleSheet.create({
  17. headerLogo: {
  18. height: fonts.getSize(64),
  19. width: fonts.getSize(64)
  20. },
  21. header:{
  22. backgroundColor: colors.white
  23. }
  24. })