Skip to content

Commit

Permalink
fix: shouldHandleNavigationBack works for YearPickerModal on all plat…
Browse files Browse the repository at this point in the history
…forms
  • Loading branch information
jacobkim9881 committed Nov 27, 2024
1 parent 92e1896 commit be746b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/DatePicker/CalendarPicker/YearPickerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import SelectionList from '@components/SelectionList';
import RadioListItem from '@components/SelectionList/RadioListItem';
import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import * as Browser from '@libs/Browser';
import CONST from '@src/CONST';
import type CalendarPickerListItem from './types';

Expand Down Expand Up @@ -54,7 +53,7 @@ function YearPickerModal({isVisible, years, currentYear = new Date().getFullYear
onModalHide={onClose}
hideModalContentWhileAnimating
useNativeDriver
shouldHandleNavigationBack={Browser.isMobileChrome()}
shouldHandleNavigationBack
>
<ScreenWrapper
style={[styles.pb0]}
Expand Down

0 comments on commit be746b4

Please sign in to comment.