In this recipe, we are going to learn how to implement React Navigation V2 in our React Native application. We will create a simple navigation between sections.
Implementing React Navigation V2
Getting Ready
We need to install the react-navigation dependency:
npm install react-navigation
How to do it...
Let's implement React Navigation v2:
- Include createDrawerNavigation and DrawerItems from react-navigation and the components we want to render as sections (Home and Configuration):
// Dependencies
import React, { Component } from 'react';
import...