Skip to content

Commit

Permalink
add comment for useCustomBackHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgrzybowski committed Apr 16, 2024
1 parent 5ea4a9f commit 2e38d66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/Search/useCustomBackHandler/index.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import type {RootStackParamList, State} from '@libs/Navigation/types';
import NAVIGATORS from '@src/NAVIGATORS';
import SCREENS from '@src/SCREENS';

// We need to make sure that the central pane screen and bottom tab won't be desynchronized after using the physical back button on Android.
// To achieve that we will call additional POP on the bottom tab navigator if the search page would disappear from the central pane.
function useCustomBackHandler() {
useFocusEffect(
useCallback(() => {
Expand Down

0 comments on commit 2e38d66

Please sign in to comment.