Answers for "TypeError: navigation.getParams is not a function."

0

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>
  );
}
Posted by: Guest on January-04-2022

Code answers related to "TypeError: navigation.getParams is not a function."

Code answers related to "Javascript"

Browse Popular Code Answers by Language