migrated follows screen

This commit is contained in:
Nouman Tahir 2022-08-07 13:20:44 +05:00
parent e9649c0f18
commit 054d724d6e
3 changed files with 12 additions and 11 deletions

View File

@ -45,22 +45,22 @@ export const StackNavigator = () => {
return (
<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
<Stack.Screen name={ROUTES.SCREENS.PROFILE} component={Profile} />
{/* <Stack.Screen name={ROUTES.SCREENS.PROFILE_EDIT} component={ProfileEdit} /> */}
{/* <Stack.Screen
name={ROUTES.SCREENS.POST}
component={Post}
options={{
gestureEnabled: true,
gestureResponseDistance: { horizontal: 70 },
}}
/>
<Stack.Screen name={ROUTES.SCREENS.EDITOR} component={Editor} /> */}
/> */}
{/* <Stack.Screen name={ROUTES.SCREENS.EDITOR} component={Editor} /> */}
<Stack.Screen name={ROUTES.SCREENS.VOTERS} component={Voters} />
{/* <Stack.Screen name={ROUTES.SCREENS.FOLLOWS} component={Follows} /> */}
<Stack.Screen name={ROUTES.SCREENS.FOLLOWS} component={Follows} />
<Stack.Screen name={ROUTES.SCREENS.SETTINGS} component={Settings} />
<Stack.Screen name={ROUTES.SCREENS.DRAFTS} component={Drafts} />
{/* <Stack.Screen name={ROUTES.SCREENS.BOOKMARKS} component={Bookmarks} /> */}
<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.TRANSFER} component={Transfer} /> */}

View File

@ -6,6 +6,7 @@ import get from 'lodash/get';
// Utilities
// Services and Actions
import { withNavigation } from '@react-navigation/compat';
import { getFollowers, getFollowing, getFollowSearch } from '../../../providers/hive/dhive';
// Component
import FollowsScreen from '../screen/followsScreen';
@ -31,10 +32,10 @@ class FollowsContainer extends Component {
// Component Life Cycle Functions
async componentDidMount() {
const { navigation } = this.props;
const { route } = this.props;
if (navigation.state && navigation.state.params) {
const { count, username, isFollowingPress } = navigation.state.params;
if (route && route.params) {
const { count, username, isFollowingPress } = route.params;
this.setState({
count,

View File

@ -2,9 +2,9 @@
import React, { PureComponent } from 'react';
import { View, Text, FlatList, ActivityIndicator } from 'react-native';
import { injectIntl } from 'react-intl';
import { withNavigation } from '@react-navigation/compat';
// Constants
import { withNavigation } from '@react-navigation/compat';
import ROUTES from '../../../constants/routeNames';
// Components