
上QQ阅读APP看书,第一时间看更新
Getting ready
Let's go ahead and create a new blank application named simple-navigation. We're also going to need a third-party package for handling our navigation. We'll be using 1.5.9 version of the react-navigation package. Using a newer version of this package will not work properly with this code, as the package's API has recently gone through breaking changes.. In the Terminal, navigate to the root of the new project and install this package with the following command:
yarn add react-navigation@1.5.9
That's all of the setup we need. Let's build!