From the course: Create a CRM Mobile Application with React Native
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Tab navigation - React Native Tutorial
From the course: Create a CRM Mobile Application with React Native
Tab navigation
- [Instructor] Let's continue doing the tab navigation here. So the first thing I'm going to do is add some props for the tab navigator. So if you don't know, tab navigator comes with a lot of options and basically props that you can use. For example, the one that I'm going to use first is what is the initial route? So when the application loads, what is the route that will be loaded on the screen from the tab? So it's going to be people. Another prop is active color, and that's the color that you want of the tab itself. So this is a color that I'm using throughout this application. Feel free to select whatever color you want. Then the bar style basically allows us to add more styles to the bar itself. One of them is the background color. So just as a note, this is the active color, so basically the color when you select a particular tab. The background color is the color of the tab itself. So we're going to go for this color here. Okay, so these are the options for the tab navigator.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.