NewscoutHomeHeader.js 835 B

123456789101112131415161718192021222324252627
  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 MaterialIcon from "react-native-vector-icons/dist/MaterialIcons"
  6. import colors from '../../../theme/colors'
  7. import Header from '../../atoms/Header'
  8. const NewscoutHomeHeader = ({onPress}) => {
  9. return (
  10. <Header >
  11. <NewscoutLogo style={styles.headerLogo}/>
  12. <TouchableWithoutFeedback onPress={onPress}>
  13. <MaterialIcon name='notifications-none' color={colors.tertiaryColor} size={30}/>
  14. </TouchableWithoutFeedback>
  15. </Header>
  16. )
  17. }
  18. export default NewscoutHomeHeader
  19. const styles = StyleSheet.create({
  20. headerLogo:{
  21. height: fonts.getSize(64),
  22. width: fonts.getSize(64)
  23. },
  24. })