Jelajahi Sumber

Fixed Navigation

Savio Fernando 11 bulan lalu
induk
melakukan
1c072a9ebe

+ 1 - 1
src/components/organisms/Sections/CategorySearchSection.js

@@ -1,6 +1,6 @@
 import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native'
 import React, { useState } from 'react'
-import { useConstructor } from '../../../utils/functions'
+import { navigateToListViewPage, useConstructor } from '../../../utils/functions'
 import { getCategories } from '../../../api/data'
 import fonts from '../../../constants/fonts'
 import colors from '../../../constants/colors'

+ 1 - 2
src/components/organisms/Sections/RecentSearchesSection.js

@@ -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