Typescript definitions need to be updated. (@types/react-navigation)