See the following issues for a detailed description of the problem, and a workaround: https://github.com/react-navigation/react-navigation/issues/9744