RecentNewsSection.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import { StyleSheet, Text, TouchableOpacity, View } from 'react-native'
  2. import React from 'react'
  3. import Header from '../../atoms/Header'
  4. import { List } from 'react-native-paper'
  5. import fonts from '../../../theme/fonts'
  6. import colors from '../../../theme/colors'
  7. import ImageBGCard from '../Cards/ImageBGCard'
  8. import images from '../../../assets/images/images'
  9. import SectionHeader from '../Headers/SectionHeader'
  10. const RecentNewsSection = () => {
  11. return (
  12. <View>
  13. <SectionHeader label={"Recent News"}/>
  14. <View style={styles.recentCardContainer}>
  15. <ImageBGCard
  16. image={images.imageCard}
  17. author={"Ryan Browne"}
  18. headline={"Shadow Wizard Money Gang We love casting Spells"}
  19. />
  20. </View>
  21. </View>
  22. )
  23. }
  24. export default RecentNewsSection
  25. const styles = StyleSheet.create({
  26. recentHeader: {
  27. paddingHorizontal: 16,
  28. },
  29. recentHeaderText: {
  30. fontFamily: fonts.type.semibold,
  31. fontSize: fonts.getSize(16),
  32. color: colors.black
  33. },
  34. seeAllText: {
  35. fontFamily: fonts.type.semibold,
  36. color: colors.topColor,
  37. paddingRight: 16,
  38. alignSelf: 'stretch'
  39. },
  40. recentHeaderIcon: {
  41. },
  42. recentCardContainer: {
  43. flexDirection: 'column',
  44. paddingHorizontal: 16,
  45. overflow: 'hidden'
  46. },
  47. })