Skip to content

RNSonaliDev/PaymentScreen

Repository files navigation

Welcome to your Expo app 👋

This is an Expo project created with create-expo-app.

Get started

  1. Install dependencies

    npm install
  2. Start the app

    npx expo start

In the output, you'll find options to open the app in a

You can start developing by editing the files inside the app directory. This project uses file-based routing.

Get a fresh project

When you're ready, run:

npm run reset-project

This command will move the starter code to the app-example directory and create a blank app directory where you can start developing.

Learn more

To learn more about developing your project with Expo, look at the following resources:

Join the community

Join our community of developers creating universal apps.

React Native Payment Screen Demo

This project is a small demo app built with React Native (Expo) as part of a take home assignment.
The goal is to show how the same Payment screen can be reused for both Domestic and International transfers.


Features

  • Single PaymentScreen reused for both flows
  • Radio button to switch between Domestic and International
  • Form validation handled with react-hook-form + yup
  • Different validation rules depending on the transfer type
    • Domestic: recipient name, account number, amount
    • International: same as above + IBAN, SWIFT code
  • When switching tab, the form resets and auto focuses back on Recipient Name
  • "Send Payment" button is fixed at the bottom
  • All data is mocked (no API calls)

Tech stack

  • React Native (Expo)
  • react-hook-form
  • yup

Setup

git clone https://github.com/RNSonaliDev/PaymentScreen.git
cd PaymentGatway
npm install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published