From cb32bcddca90ccfc88a144aff83989ca05b8d4bc Mon Sep 17 00:00:00 2001 From: Johannes Klein Date: Mon, 8 Sep 2025 14:24:08 +0200 Subject: [PATCH] Fix: Back button not showing on ObsEdit (#3101) --- src/components/SharedComponents/Buttons/BackButton.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/SharedComponents/Buttons/BackButton.tsx b/src/components/SharedComponents/Buttons/BackButton.tsx index 93aaf1b8a..1d45dde77 100644 --- a/src/components/SharedComponents/Buttons/BackButton.tsx +++ b/src/components/SharedComponents/Buttons/BackButton.tsx @@ -51,6 +51,7 @@ const BackButton = ( { }: Props ) => { const { isRTL } = I18nManager; const navigation = useNavigation(); + const canGoBack = navigation?.canGoBack( ); const tintColor = color || colors.darkGray; const { t } = useTranslation( ); @@ -73,7 +74,7 @@ const BackButton = ( { /> ); - if ( navigation?.canGoBack( ) ) { + if ( onPress || canGoBack ) { return (