https://github.com/react-navigation/react-navigation/issues/678