Skip to content

Commit

Permalink
navActions [nfc]: Add a TODO for simplifying navigateBack.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbobbe committed Sep 10, 2021
1 parent 2e80bd0 commit a19eb69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nav/navActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import type { Message, Narrow, UserId } from '../types';
import type { SharedData } from '../sharing/types';
import type { ApiResponseServerSettings } from '../api/settings/getServerSettings';

// TODO: Probably just do a StackActions.pop()?
export const navigateBack = (): PopAction => {
const routes = NavigationService.getState().routes;
let i = routes.length - 1;
Expand Down

0 comments on commit a19eb69

Please sign in to comment.