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.
- 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
- Clone the repository
- Install dependencies with
npm install
- Run the app on iOS simulator with
npx react-native run-ios
or on Android simulator withnpx react-native run-android
- Run unit tests with
npm test
- 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
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.
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.