79465911

Date: 2025-02-25 08:56:21
Score: 1
Natty:
Report link

You can type the navigation props like this:

import { NavigationProp, ParamListBase } from "@react-navigation/native";

type HomeScreenProps = {
  navigation: NavigationProp<ParamListBase>;
};

export default function HomeScreen({ navigation }: HomeScreenProps ) {
...
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: JuanS