Skip to content

jogeshpi03/user-authentication-flow

Repository files navigation

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
})