mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
MOB-961 - taxon details - when navigating the taxonomy tree, preserve the navigation stack
This commit is contained in:
committed by
Johannes Klein
parent
f4b7d67722
commit
7e401279b7
@@ -23,15 +23,13 @@ const Taxonomy = ( { taxon: currentTaxon, hideNavButtons }: Props ) => {
|
|||||||
const scientificNameFirst = currentUser?.prefers_scientific_name_first;
|
const scientificNameFirst = currentUser?.prefers_scientific_name_first;
|
||||||
|
|
||||||
const navigateToTaxonDetails = ( taxonId: number ) => (
|
const navigateToTaxonDetails = ( taxonId: number ) => (
|
||||||
navigation.navigate( {
|
navigation.push( "TaxonDetails", {
|
||||||
// Ensure button mashing doesn't open multiple TaxonDetails instances
|
// Ensure button mashing doesn't open multiple TaxonDetails instances
|
||||||
key: `${route.key}-Taxonomy-TaxonDetails-${taxonId}`,
|
key: `${route.key}-Taxonomy-TaxonDetails-${taxonId}`,
|
||||||
name: "TaxonDetails",
|
name: "TaxonDetails",
|
||||||
params: {
|
id: taxonId,
|
||||||
id: taxonId,
|
hideNavButtons,
|
||||||
hideNavButtons,
|
usesVision: false
|
||||||
usesVision: false
|
|
||||||
}
|
|
||||||
} )
|
} )
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user