|
@@ -3,7 +3,7 @@ import React, { useState } from 'react'
|
|
|
import { horizontalScale, moderateScale, verticalScale } from '../../../constants/metrics'
|
|
|
import colors from '../../../constants/colors'
|
|
|
import fonts from '../../../constants/fonts'
|
|
|
-import { useConstructor } from '../../../utils/functions'
|
|
|
+import { navigateToArticle, useConstructor } from '../../../utils/functions'
|
|
|
import { getTrendingNews } from '../../../api/data'
|
|
|
import { PAGINATE_BY } from '../../../api/urls'
|
|
|
import { List } from 'react-native-paper'
|
|
@@ -13,7 +13,6 @@ import LoadingScreen from './LoadingScreen'
|
|
|
const RecentSearchesSection = props => {
|
|
|
|
|
|
const [recentSearches, setRecentSearches] = useState(null)
|
|
|
-
|
|
|
const {
|
|
|
navigation,
|
|
|
route
|