Adding tabs to the viewport
Tabs are a very common component, especially in iOS apps. In this recipe, we will learn how to use the tabs component on iOS devices only. As of now, we don't have support for Android, and if we really want to use tabs, we would have to use a third-party library to add similar functionality.
We need to create an empty app using the React Native CLI. We will name it
TabsComponent. Then we will create an
How to do it...
- Let's start by importing all the dependencies for this component, as well as ...