yarn add react-navigation version 4 code example Example: react navigation 4 Copiednpm install react-navigation