Skip to content

Simple React Native App with form to validate a credit card

License

Notifications You must be signed in to change notification settings

intimateo/RN-credit-card-validator

Repository files navigation

Credit Card Validator App

The Credit Card Validator App is a simple mobile application built with React Native that validates credit card numbers. Users can enter a credit card number into a form, submit it, and see if the number is valid or not. The app is designed to help users quickly validate their credit card numbers and prevent errors when entering them.

Features

  • Validates credit card numbers from major issuers, including Visa, MasterCard, Amex, and Discover
  • Shows an error message if an invalid credit card number is entered
  • Simple, easy-to-use interface
  • Built with React Native for cross-platform compatibility
  • Unit tests to ensure functionality and prevent regressions

Installation

  • Clone the repository
  • Install dependencies with npm install
  • Run the app on iOS simulator with npx react-native run-ios or on Android simulator with npx react-native run-android
  • Run unit tests with npm test

Usage

  • Open the app on your mobile device or simulator
  • Fill out all the fields
  • Press the "Submit" button to check if the data provided is valid
  • If the data is invalid, an error message will be displayed below each field
  • To try another credit card number and the error message will dissapear if the data is correct

Contributing

Contributions to the Credit Card Validator App are welcome and encouraged! If you'd like to contribute, please fork the repository and submit a pull request.

License

The Credit Card Validator App is open source and licensed under the MIT License. Feel free to use, modify, and distribute the code as you see fit.

About

Simple React Native App with form to validate a credit card

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published