Go to a new screen
Your task Add the Details screen to the stack: <Stack.Screen name="Details" component={DetailsScreen} />. Then make the button open it: onPress={() => navigation.navigate("Details")}.
Getting the editor ready
Your task Add the Details screen to the stack: <Stack.Screen name="Details" component={DetailsScreen} />. Then make the button open it: onPress={() => navigation.navigate("Details")}.
Getting the editor ready