Skip to Main Content
React Projects
book

React Projects

by Roy Derks
December 2019
Intermediate to advanced content levelIntermediate to advanced
474 pages
10h 3m
English
Packt Publishing
Content preview from React Projects

Authentication with React Navigation

To set up the authentication flow we described earlier, you'll use the React Navigation package again. Previously, you used the different types of navigators from React Navigation, but not SwitchNavigator. With this navigator type, you can only display one screen at once, and you can navigate to other screens using the navigation prop. SwitchNavigator should be the main navigator of your application and other navigators such as StackNavigator can be nested inside it.

Adding authentication to the React Native application involves performing the following steps:

  1. The first step to using this navigator type is importing createSwitchNavigator from react-navigation, just like you imported the other navigators ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

React Projects - Second Edition

React Projects - Second Edition

Roy Derks
Test-Driven React

Test-Driven React

Trevor Burnham

Publisher Resources

ISBN: 9781789954937Supplemental Content