I have a tab navigator with a form on each of the tabs. I am looking for a solution where if data has changed on the form and not been saved, when the user tries to change tabs show a confirmation message 'Any unsaved data will be lost', and if the user selects yes, go ahead and change tabs, else stay on the current tab.
I have seen this topic in the forums but have not seen a working example yet. Does anyone have any solutions or ideas to solve this issue?

