goBack
Closes the top presented screen, or pops the current stack.
Verwendung
Use typed destinations
import { Button, Link, Text, VStack, goBack, navigate, routes } from 'kuito';
export function Actions() {
return (
<VStack gap={8}>
<Button onPress={() => navigate(routes.show({ id: 7 }))}>Open show 7</Button>
<Button onPress={() => navigate(routes.show({ id: 8 }), { replace: true })}>
Replace with show 8
</Button>
<Link to={routes.profile()}>
<Text>Profile</Text>
</Link>
<Button onPress={goBack}>Back</Button>
</VStack>
);
}Signaturen
(): voidParameter
Keine Parameter.
Rückgabe
void
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.