diff --git a/app/definitions/index.ts b/app/definitions/index.ts index d8af539fd..f9ca20d4a 100644 --- a/app/definitions/index.ts +++ b/app/definitions/index.ts @@ -1,8 +1,10 @@ +import { RouteProp } from '@react-navigation/native'; import { StackNavigationProp } from '@react-navigation/stack'; import { Dispatch } from 'redux'; export interface IBaseScreen, S extends string> { navigation: StackNavigationProp; + route: RouteProp; dispatch: Dispatch; theme: string; } diff --git a/app/views/SelectedUsersView.tsx b/app/views/SelectedUsersView.tsx index 8962555f3..85311154e 100644 --- a/app/views/SelectedUsersView.tsx +++ b/app/views/SelectedUsersView.tsx @@ -1,5 +1,4 @@ import { Q } from '@nozbe/watermelondb'; -import { RouteProp } from '@react-navigation/native'; import orderBy from 'lodash/orderBy'; import React from 'react'; import { FlatList, View } from 'react-native'; @@ -36,8 +35,7 @@ interface ISelectedUsersViewState { chats: ISelectedUser[]; } -interface ISelectedUsersViewProps extends IBaseScreen { - route: RouteProp; +interface ISelectedUsersViewProps extends IBaseScreen { // REDUX STATE users: ISelectedUser[]; loading: boolean;