I have a tsx file with react-native. My function name is underlined if function is not set to const or let with this message:
Cannot find name 'goBack'
goBack = () => { // do stuff}
But it works if I set const or let:
const goBack = () => { // do stuff}
Why ?