import * as React from 'react';
import { Text } from 'react-native';
import { useRoute } from '@react-navigation/native';
function MyText() {
const route = useRoute();
return <Text>{route.params.caption}</Text>;
}
navigation.navigate('RouteName', { /* params go here */ })
to recieve the params
function DetailsScreen({ route, navigation }) {
const { itemId, otherParam } = route.params;
return(<Text>itemId<Text>);
}