jogeshpi03 / user-authentication-flow

React Native - User Authentication Flow with React Navigation 4

Home Page:https://webomnizz.com/react-navigation-switch-navigator-and-authentication-flow/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Native - User Authentication Flow with React Navigation 4

Aim of this repository is to make basic understand of how the user authentication works. You can find more details on my blog post.

Authentication Flow Gif

Requirements

Navigate the project directory and run npm install. After downloading the required packages run npm start.

Please don't forget to update the API codes to /src/screens/auth/SigninScreen.js

const response = await fetch(`https://c282a758.ngrok.io/api/login`, {
    method: 'POST', 
    headers: {
        'Accept': 'application/json',
        'Content-Type': 'application/x-www-form-urlencoded'
    }, 
    body: formData
})