2021-12-03 19:27:57 +00:00
|
|
|
import { NavigatorScreenParams } from '@react-navigation/core';
|
|
|
|
|
2022-01-11 13:51:48 +00:00
|
|
|
import { ISubscription } from './definitions/ISubscription';
|
2021-12-03 19:27:57 +00:00
|
|
|
import { IServer } from './definitions/IServer';
|
|
|
|
import { IAttachment } from './definitions/IAttachment';
|
|
|
|
import { MasterDetailInsideStackParamList } from './stacks/MasterDetailStack/types';
|
|
|
|
import { OutsideParamList, InsideStackParamList } from './stacks/types';
|
|
|
|
|
|
|
|
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;
|
|
|
|
serverInfo: IServer;
|
|
|
|
text: string;
|
2022-01-11 13:51:48 +00:00
|
|
|
room: ISubscription;
|
2021-12-03 19:27:57 +00:00
|
|
|
thread: any; // TODO: Change
|
|
|
|
};
|
|
|
|
SelectServerView: undefined;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ShareOutsideStackParamList = {
|
|
|
|
WithoutServersView: undefined;
|
|
|
|
};
|
|
|
|
|
|
|
|
export type ShareAppStackParamList = {
|
|
|
|
AuthLoading?: undefined;
|
|
|
|
OutsideStack?: NavigatorScreenParams<ShareOutsideStackParamList>;
|
|
|
|
InsideStack?: NavigatorScreenParams<ShareInsideStackParamList>;
|
|
|
|
};
|