2018-07-10 13:40:32 +00:00
|
|
|
class NavigationActionsClass {
|
|
|
|
setNavigator(navigator) {
|
|
|
|
this.navigator = navigator;
|
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
2018-08-10 17:26:36 +00:00
|
|
|
dismissModal = params => this.navigator && this.navigator.dismissModal(params);
|
2018-07-10 13:40:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const NavigationActions = new NavigationActionsClass();
|