Refresh previous screen on goBack()

Adding an Api Call in a focus callBack in the screen you’re returning to solves the issue. componentDidMount() { this.props.fetchData(); this.willFocusSubscription = this.props.navigation.addListener( ‘willFocus’, () => { this.props.fetchData(); } ); } componentWillUnmount() { this.willFocusSubscription.remove(); } UPDATE 2023: willFocus event was renamed to focus componentDidMount() { this.props.fetchData(); this.focusSubscription = this.props.navigation.addListener( ‘focus’, () => { this.props.fetchData(); } … Read more

How to hide bottom navigation bar on a specific screen in react native?

I’ve traversed the internet like never before to find a solution for this problem as the provided solution by the docs did not work in the slightest. I had the following navigational Set-Up: Bottom Tabs A (NativeStack) 1 (Screen) 2 (Screen) 3 (Screen) B (NativeStack) C (NativeStack) I wanted to hide the bottom bar in … Read more