migrated tag result screen

This commit is contained in:
Nouman Tahir 2022-08-07 14:46:10 +05:00
parent 0c8a3faf5b
commit 105347ac37
2 changed files with 9 additions and 10 deletions

View File

@ -46,7 +46,7 @@ export const StackNavigator = () => {
<Stack.Navigator headerMode="none">
<Stack.Screen name={ROUTES.DRAWER.MAIN} component={DrawerNavigator} />
<Stack.Screen name={ROUTES.SCREENS.PROFILE} component={Profile} />
{/* <Stack.Screen name={ROUTES.SCREENS.PROFILE_EDIT} component={ProfileEdit} /> */}
<Stack.Screen name={ROUTES.SCREENS.PROFILE_EDIT} component={ProfileEdit} />
<Stack.Screen
name={ROUTES.SCREENS.POST}
component={Post}
@ -62,7 +62,7 @@ export const StackNavigator = () => {
<Stack.Screen name={ROUTES.SCREENS.DRAFTS} component={Drafts} />
<Stack.Screen name={ROUTES.SCREENS.BOOKMARKS} component={Bookmarks} />
<Stack.Screen name={ROUTES.SCREENS.SEARCH_RESULT} component={SearchResult} />
{/* <Stack.Screen name={ROUTES.SCREENS.TAG_RESULT} component={TagResult} /> */}
<Stack.Screen name={ROUTES.SCREENS.TAG_RESULT} component={TagResult} />
{/* <Stack.Screen name={ROUTES.SCREENS.TRANSFER} component={Transfer} /> */}
{/* <Stack.Screen name={ROUTES.SCREENS.BOOST} component={Boost} /> */}
{/* <Stack.Screen name={ROUTES.SCREENS.REDEEM} component={Redeem} /> */}

View File

@ -1,21 +1,20 @@
import React, { useEffect, useState } from 'react';
import { View, SafeAreaView } from 'react-native';
import ScrollableTabView from 'react-native-scrollable-tab-view';
import { useIntl } from 'react-intl';
import { View } from 'react-native';
import { debounce } from 'lodash';
// Components
import { SearchInput, Posts, TabBar, TabbedPosts, IconButton } from '../../../components';
import { SearchInput, TabbedPosts } from '../../../components';
// Styles
import styles from './tagResultStyles';
import globalStyles from '../../../globalStyles';
import { GLOBAL_POST_FILTERS, GLOBAL_POST_FILTERS_VALUE } from '../../../constants/options/filters';
const TagResultScreen = ({ navigation }) => {
const initTag = navigation.getParam('tag', '');
const filter = navigation.getParam('filter', '');
const TagResultScreen = ({navigation, route}) => {
const initTag = route.params?.tag ?? ''
const filter = route.params?.filter ?? ''
const [tag, setTag] = useState(initTag);