2018-07-10 13:40:32 +00:00
|
|
|
class NavigationActionsClass {
|
|
|
|
setNavigator(navigator) {
|
|
|
|
this.navigator = navigator;
|
|
|
|
}
|
|
|
|
|
2018-09-25 19:28:42 +00:00
|
|
|
push = params => this.navigator && this.navigator.push(params)
|
|
|
|
|
|
|
|
pop = params => this.navigator && this.navigator.pop(params)
|
|
|
|
|
|
|
|
popToRoot = params => this.navigator && this.navigator.popToRoot(params)
|
|
|
|
|
|
|
|
resetTo = params => this.navigator && this.navigator.resetTo(params)
|
|
|
|
|
|
|
|
toggleDrawer = params => this.navigator && this.navigator.toggleDrawer(params)
|
|
|
|
|
|
|
|
dismissModal = params => this.navigator && this.navigator.dismissModal(params)
|
2018-07-10 13:40:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const NavigationActions = new NavigationActionsClass();
|