As you know goBack sends you back to the previous screen. So where does this keep the information of the screen it will go back to? How can I find out the name of the screen that goBack will return to?
const InfoScreen = ({ navigation }) => {
return (
<SafeAreaView style={styles.safeArea}>
<AppHeader onPressLeft={() => {
navigation.goBack()
Ï }}
/>
</SafeAreaView>
)
}
export default InfoScreen