Take Home Test - RN
Take Home Test - RN
Requirements
Create a simple app that allows users to login, register, and input OTP.
Using React Native, create a page for users to login/ register with the following details:
Registration
Where users input their username and password.
Should contain the following validations:
1. Password must contain at least 8 characters
2. Password must contain at least a lowercase letter
3. Password must contain at least an uppercase letter
4. Password must contain at least a symbol
5. Email validation
After the user submits the data, redirect the user to the OTP page.
OTP
Where users input a 6-digit OTP.
1. Can assume the correct OTP is 111111.
2. Countdown 30 seconds before they can click the “resend” button.
3. The resend button will refresh the timer.
4. The focus should automatically move to the right while the user inputs the number, and
moves to the left when the user uses backspace.
5. After a correct OTP is submitted, store the username/password locally, and redirect the
user to the login page.
Login
If a user successfully login with the registered username & password, it should go to a page that
says “Welcome”, and have a logout button.