So When I try to pass in goBack function as a reference it doesn't work for some reason, I need to encapsulate it as an anonymous function for it to work. Is there a reason why this is the case?
I want this to work! (Below)
<Button onPress={this.props.navigation.goBack} />
But only this works (Below)
<Button onPress={() => this.props.navigation.goBack()} />
Is this loosing its reference? Thanks!
EDIT: I noticed that the document also uses anonymous function to invoke goBack. Curious why this is the case.
thiscontext.