https://github.com/react-navigation/react-navigation/pull/1308