mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-19 21:18:35 -04:00
Fix: Back button not showing on ObsEdit (#3101)
This commit is contained in:
@@ -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 (
|
||||
<HeaderBackButton
|
||||
backImage={backImage}
|
||||
|
||||
Reference in New Issue
Block a user