Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import SelectionList from '@components/SelectionList';
import RadioListItem from '@components/SelectionList/RadioListItem';
import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import Navigation from '@libs/Navigation/Navigation';
import CONST from '@src/CONST';
import type {BusinessTypeItemType, IncorporationType} from './types';

Expand Down Expand Up @@ -46,9 +47,11 @@ function BusinessTypeSelectorModal({isVisible, currentBusinessType, onBusinessTy
type={CONST.MODAL.MODAL_TYPE.RIGHT_DOCKED}
isVisible={isVisible}
onClose={onClose}
onModalHide={onClose}
hideModalContentWhileAnimating
useNativeDriver
onBackdropPress={() => {
onClose();
Navigation.dismissModal();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just thinking
Do we really need Navigation.dismissModal(); here ?
Since now when we press to backdrop we close RHP completely
In main we return to the previous screen

2025-07-31.10.54.52.mov

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is coming from a thread here

Copy link
Copy Markdown
Contributor

@ZhenjaHorbach ZhenjaHorbach Jul 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember this 😅
But for me it's a bit of a specific flow
That after every press to backdrop I have to Continue setup
And these are unnecessary actions
But maybe for consistency it's ok !

}}
shouldUseReanimatedModal
>
<ScreenWrapper
style={[styles.pb0]}
Expand Down
Loading