2021-12-21 13:11:40 +00:00
|
|
|
import { StackNavigationProp } from '@react-navigation/stack';
|
|
|
|
import { Dispatch } from 'redux';
|
|
|
|
|
|
|
|
export interface BaseScreen {
|
|
|
|
navigation: StackNavigationProp<any>;
|
|
|
|
dispatch: Dispatch;
|
|
|
|
theme: string;
|
|
|
|
}
|
|
|
|
|
2021-12-21 15:03:59 +00:00
|
|
|
export interface IUser {
|
|
|
|
_id: string;
|
|
|
|
name: string;
|
|
|
|
fname: string;
|
|
|
|
search?: boolean;
|
|
|
|
// username is used when is from searching
|
|
|
|
username?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
type UserStatus = 'online' | 'offline';
|
|
|
|
export interface ActiveUser {
|
|
|
|
status: UserStatus;
|
|
|
|
statusText?: string;
|
|
|
|
}
|
|
|
|
|
2021-12-21 13:11:40 +00:00
|
|
|
export * from './redux';
|