You can install react navigation by the following command:

yarn add react-navigation
or npm install react-navigation

BY Best Interview Question ON 18 Jan 2020