TypeError: navigation.getParams is not a function.
In react navigation 6 we use route so change navigation to route it should
look like this
export default function Example({ route }) {
return (
<View>
<Text>{route.params.exapmle}</Text>
</View>
);
}