diff --git a/app/stacks/MasterDetailStack/types.ts b/app/stacks/MasterDetailStack/types.ts index 70f5726e6d..4b48b2e890 100644 --- a/app/stacks/MasterDetailStack/types.ts +++ b/app/stacks/MasterDetailStack/types.ts @@ -222,4 +222,7 @@ export type MasterDetailInsideStackParamList = { room: ISubscription; thread: any; // TODO: Change }; + AttachmentView: { + attachment: IAttachment; + }; }; diff --git a/app/stacks/types.ts b/app/stacks/types.ts index c8afff6386..fcd778ac53 100644 --- a/app/stacks/types.ts +++ b/app/stacks/types.ts @@ -293,6 +293,9 @@ export type InsideStackParamList = { finishShareView: (text?: string, selectedMessages?: string[]) => void | undefined; startShareView: () => { text: string; selectedMessages: string[] }; }; + AttachmentView: { + attachment: IAttachment; + }; ModalBlockView: { data: any; // TODO: Change; }; diff --git a/app/views/RoomView/index.tsx b/app/views/RoomView/index.tsx index a2d595f2d0..8ee53ee5fe 100644 --- a/app/views/RoomView/index.tsx +++ b/app/views/RoomView/index.tsx @@ -886,7 +886,6 @@ class RoomView extends React.Component { showAttachment = (attachment: IAttachment) => { const { navigation } = this.props; - // @ts-ignore navigation.navigate('AttachmentView', { attachment }); };