-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathNavigators.res
More file actions
39 lines (32 loc) · 838 Bytes
/
Navigators.res
File metadata and controls
39 lines (32 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
open ReactNavigation
module M = {
type params = unit
}
module StatsStack = {
module M = {
type params = {currentActivityTitle: option<string>, currentWeek: option<(string, string)>}
}
include NativeStack.Make(M)
}
module GoalsStack = NativeStack.Make(M)
module SettingsStack = NativeStack.Make(M)
module Tabs = BottomTabs.Make(M)
module RootStack = {
module M = {
type params = {
// for Goals*ModalScreen
newGoalType: option<Goal.Type.serializableT>,
goalId: option<Goal.id>,
// react-navigation native params to navigate to a screen if you are in a tab
screen: option<string>,
}
@obj
external params: (
~newGoalType: Goal.Type.serializableT=?,
~goalId: Goal.id=?,
~screen: string=?,
unit,
) => params = ""
}
include NativeStack.Make(M)
}