NewsDetailPage.js 970 B

1234567891011121314151617181920212223242526
  1. import { StyleSheet, Text, View, TouchableWithoutFeedback } from 'react-native'
  2. import React from 'react'
  3. import Header from '../components/atoms/Header'
  4. import FeatherIcon from 'react-native-vector-icons/Feather'
  5. import MaterialIcon from 'react-native-vector-icons/MaterialIcons'
  6. import colors from '../theme/colors'
  7. const NewsDetailPage = ({ navigation }) => {
  8. return (
  9. <View>
  10. <Header>
  11. <TouchableWithoutFeedback onPress={() => {navigation.goBack()}}>
  12. <FeatherIcon name={'chevron-left'} size={24} color={colors.black} />
  13. </TouchableWithoutFeedback>
  14. <TouchableWithoutFeedback onPress={() => navigation.toggleDrawer()}>
  15. <MaterialIcon name='list' color={colors.topColor} size={30} />
  16. </TouchableWithoutFeedback>
  17. </Header>
  18. </View>
  19. )
  20. }
  21. export default NewsDetailPage
  22. const styles = StyleSheet.create({})