2021-12-03 19:27:57 +00:00
|
|
|
import { NavigatorScreenParams } from '@react-navigation/core';
|
2022-01-17 16:10:39 +00:00
|
|
|
import { StackNavigationOptions } from '@react-navigation/stack';
|
2021-12-03 19:27:57 +00:00
|
|
|
|
2022-05-03 01:06:19 +00:00
|
|
|
import { TSubscriptionModel } from './ISubscription';
|
|
|
|
import { TServerModel } from './IServer';
|
2022-01-17 16:10:39 +00:00
|
|
|
import { IAttachment } from './IAttachment';
|
|
|
|
import { MasterDetailInsideStackParamList } from '../stacks/MasterDetailStack/types';
|
|
|
|
import { OutsideParamList, InsideStackParamList } from '../stacks/types';
|
|
|
|
|
|
|
|
interface INavigationProps {
|
|
|
|
route?: any;
|
|
|
|
navigation?: any;
|
|
|
|
isMasterDetail?: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type TNavigationOptions = {
|
|
|
|
navigationOptions?(props: INavigationProps): StackNavigationOptions;
|
|
|
|
};
|
2021-12-03 19:27:57 +00:00
|
|
|
|
|
|
|
export type SetUsernameStackParamList = {
|
|
|
|
SetUsernameView: {
|
|
|
|
title: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
export type StackParamList = {
|
|
|
|
AuthLoading: undefined;
|
|
|
|
OutsideStack: NavigatorScreenParams<OutsideParamList>;
|
|
|
|
InsideStack: NavigatorScreenParams<InsideStackParamList>;
|
|
|
|
MasterDetailStack: NavigatorScreenParams<MasterDetailInsideStackParamList>;
|
|
|
|
SetUsernameStack: NavigatorScreenParams<SetUsernameStackParamList>;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ShareInsideStackParamList = {
|
|
|
|
ShareListView: undefined;
|
|
|
|
ShareView: {
|
|
|
|
attachments: IAttachment[];
|
|
|
|
isShareView?: boolean;
|
|
|
|
isShareExtension: boolean;
|
2022-05-03 01:06:19 +00:00
|
|
|
serverInfo: TServerModel;
|
2021-12-03 19:27:57 +00:00
|
|
|
text: string;
|
2022-05-03 01:06:19 +00:00
|
|
|
room: TSubscriptionModel;
|
|
|
|
thread?: any; // TODO: Change
|
2021-12-03 19:27:57 +00:00
|
|
|
};
|
|
|
|
SelectServerView: undefined;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ShareOutsideStackParamList = {
|
|
|
|
WithoutServersView: undefined;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ShareAppStackParamList = {
|
|
|
|
AuthLoading?: undefined;
|
|
|
|
OutsideStack?: NavigatorScreenParams<ShareOutsideStackParamList>;
|
|
|
|
InsideStack?: NavigatorScreenParams<ShareInsideStackParamList>;
|
|
|
|
};
|