I am new to React Native. How can we refresh/reload previous screen when returning to it by calling goBack()?
goBack()
Lets say we have 3 screens A, B, C:
For react-navigation 5.x use
5.x
use
componentDidMount() { this.startData(); this.focusListener = this.props.navigation.addListener('focus', () => { this.startData(); //Put your Data loading function here instead of my this.LoadData() }); }