|
@@ -17,19 +17,6 @@ import { getTrendingNews } from '../../../api/data';
|
|
import LoadingScreen from './LoadingScreen';
|
|
import LoadingScreen from './LoadingScreen';
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-// import {Q} from '@nozbe/watermelondb';
|
|
|
|
-// import withObservables from '@nozbe/with-observables';
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-/*
|
|
|
|
- Enhanced News Card
|
|
|
|
-*/
|
|
|
|
-
|
|
|
|
-// const EnhancedImageBGCard = withObservables(['recent_news'], ({news}) => ({
|
|
|
|
-// news: news.observe(),
|
|
|
|
-// }))(ImageBGCard);
|
|
|
|
-
|
|
|
|
const TrendingSection = props => {
|
|
const TrendingSection = props => {
|
|
|
|
|
|
const ITEM_WIDTH = Math.round(screenWidth * 1);
|
|
const ITEM_WIDTH = Math.round(screenWidth * 1);
|
|
@@ -102,7 +89,6 @@ const TrendingSection = props => {
|
|
|
|
|
|
return (
|
|
return (
|
|
<View>
|
|
<View>
|
|
- {/* <SectionHeader label={"Recent News"} /> */}
|
|
|
|
<SectionHeader label={'Trending'} onPress={() => navigateToListViewPage(navigation,"normal","Trending")}/>
|
|
<SectionHeader label={'Trending'} onPress={() => navigateToListViewPage(navigation,"normal","Trending")}/>
|
|
<View style={styles.recentCardContainer}>
|
|
<View style={styles.recentCardContainer}>
|
|
{isLoading === true ? (
|
|
{isLoading === true ? (
|
|
@@ -146,7 +132,7 @@ const TrendingSection = props => {
|
|
? colors().secondaryColor
|
|
? colors().secondaryColor
|
|
: colors().white_variant
|
|
: colors().white_variant
|
|
}
|
|
}
|
|
- size={12}
|
|
|
|
|
|
+ size={8}
|
|
/>
|
|
/>
|
|
);
|
|
);
|
|
})}
|
|
})}
|