This commit adds a call to dismissAllModals before setRoot to ensure this use case doesn't break in the future.
A local example project using react-native-navigation. The target app for all e2e tests.
react-native-navigation