Look into adding `onHidden` and `onShowing` callbacks to the hook. Consider additional callbacks for both hook and component. Eg `onWillShow`, `onWillHide`.