-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Migrate react-navigation to TypeScript (#3480)
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
- Loading branch information
1 parent
4af97f1
commit 691bf1e
Showing
64 changed files
with
901 additions
and
373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export interface IAttachment { | ||
title: string; | ||
type: string; | ||
description: string; | ||
title_link?: string; | ||
image_url?: string; | ||
image_type?: string; | ||
video_url?: string; | ||
video_type?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export interface IMessage { | ||
msg: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface IRocketChatRecord { | ||
id: string; | ||
updatedAt: Date; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { IRocketChatRecord } from './IRocketChatRecord'; | ||
|
||
export enum RoomType { | ||
GROUP = 'p', | ||
DIRECT = 'd', | ||
CHANNEL = 'c', | ||
OMNICHANNEL = 'l', | ||
THREAD = 'thread' | ||
} | ||
|
||
export interface IRoom extends IRocketChatRecord { | ||
rid: string; | ||
t: RoomType; | ||
name: string; | ||
fname: string; | ||
prid?: string; | ||
tmid?: string; | ||
topic?: string; | ||
teamMain?: boolean; | ||
teamId?: string; | ||
encrypted?: boolean; | ||
visitor?: boolean; | ||
autoTranslateLanguage?: boolean; | ||
autoTranslate?: boolean; | ||
observe?: Function; | ||
usedCannedResponse: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export interface IServer { | ||
name: string; | ||
iconURL: string; | ||
useRealName: boolean; | ||
FileUpload_MediaTypeWhiteList: string; | ||
FileUpload_MaxFileSize: number; | ||
roomsUpdatedAt: Date; | ||
version: string; | ||
lastLocalAuthenticatedSession: Date; | ||
autoLock: boolean; | ||
autoLockTime: number | null; | ||
biometry: boolean | null; | ||
uniqueID: string; | ||
enterpriseModules: string; | ||
E2E_Enable: boolean; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { NavigatorScreenParams } from '@react-navigation/core'; | ||
|
||
import { IRoom } from './definitions/IRoom'; | ||
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; | ||
room: IRoom; | ||
thread: any; // TODO: Change | ||
}; | ||
SelectServerView: undefined; | ||
}; | ||
|
||
export type ShareOutsideStackParamList = { | ||
WithoutServersView: undefined; | ||
}; | ||
|
||
export type ShareAppStackParamList = { | ||
AuthLoading?: undefined; | ||
OutsideStack?: NavigatorScreenParams<ShareOutsideStackParamList>; | ||
InsideStack?: NavigatorScreenParams<ShareInsideStackParamList>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.