A simple/secure Notes app based on bare react native app with expo local authentication support (to be run on actual physical android/ios device)
Setup Instructions
- npm i
- cd ios && pod install
- On ios and android to install the app make sure developer mode is turned on physical device and allow installation from third part source (Settings-> VPN and device management, trust certificate for ios and similarly for android Allow USB debugging and when prompted, allow)
- For ios specifically to run the app, choose your own team (I have chosen my apple id) and automatically manage signing
To run on android and ios, use following command
npx expo run:android
npx expo run:ios
Running unit tests:
- After above setup run npm run test
You should get below output
Following test cases are added for Auth Screen:
- If authenticated user should be allowed to proceed
- If not authenticated user should be prompted to authenticate
- If user has no screen lock , prompt user to set passcode/pin
Following test cases are added for ToDo Screen:
- Renders Properly
- Add new note
- Delete Notes
Following test cases are added for Note Screen:
- Renders Properly
- Save button disabled when text input is empty
feel free to reachout in case of queries