LandingPage.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import { StyleSheet, Text, TouchableOpacity, View, ScrollView } from 'react-native'
  2. import React, { useState } from 'react'
  3. import Header from '../components/atoms/Header'
  4. import { List, ToggleButton } from 'react-native-paper'
  5. import colors from '../theme/colors'
  6. import fonts from '../theme/fonts'
  7. import ImageBGCard from '../components/organisms/Cards/ImageBGCard'
  8. import FilledPill from '../components/organisms/Pills/FilledPill'
  9. import CategorySection from '../components/organisms/Sections/CategorySection'
  10. import images from '../assets/images/images'
  11. import RecentNewsSection from '../components/organisms/Sections/RecentNewsSection'
  12. import RecentPostsSection from '../components/organisms/Sections/RecentPostsSection'
  13. const LandingPage = () => {
  14. const [categoryPillState, setcategoryPillState] = useState("all")
  15. return (
  16. <View>
  17. <ScrollView showsHorizontalScrollIndicator={false}>
  18. {/*
  19. Recent News
  20. */}
  21. <RecentNewsSection/>
  22. {/*
  23. Categories
  24. */}
  25. <CategorySection/>
  26. {/*
  27. Recent Posts
  28. */}
  29. <RecentPostsSection/>
  30. </ScrollView>
  31. </View>
  32. )
  33. }
  34. export default LandingPage
  35. const styles = StyleSheet.create({
  36. })