RecentPostsSection.js 864 B

123456789101112131415161718192021222324252627282930
  1. import { ScrollView, StyleSheet, Text, View } from 'react-native'
  2. import React from 'react'
  3. import SectionHeader from '../Headers/SectionHeader'
  4. import fonts from '../../../theme/fonts'
  5. import VerticalNewsCard from '../Cards/VerticalNewsCard'
  6. const RecentPostsSection = () => {
  7. const posts = [{},{},{},{},{}]
  8. return (
  9. <View style={styles.container}>
  10. <SectionHeader label={"Recents Posts"}/>
  11. <View style={styles.recentPostsContainer}>
  12. <ScrollView horizontal showsHorizontalScrollIndicator={false}>
  13. {posts.map((item) => <VerticalNewsCard/>)}
  14. </ScrollView>
  15. </View>
  16. </View>
  17. )
  18. }
  19. export default RecentPostsSection
  20. const styles = StyleSheet.create({
  21. recentPostsContainer:{
  22. paddingHorizontal: fonts.getSize(16),
  23. gap: fonts.getSize(4),
  24. paddingBottom: fonts.getSize(16)
  25. }
  26. })