React Native Mobile App
This is a React Native application that generates a QR code based on user input. The QR code is displayed in real-time as the user types into the text input field. The application also includes a button that is intended for downloading the QR code.
- Real-time QR code generation: As the user types into the text input, the QR code updates in real-time.
- Download QR code (to be implemented): A button for downloading the generated QR code.
- Node.js (version 12 or later)
- npm or Yarn
- React Native
-
Clone the repository:
git clone https://github.com/yourusername/qr-code-generator.git cd qr-code-generator
-
Install dependencies:
Using npm:
npm install
Or using Yarn:
yarn install
-
Run the application:
For iOS:
npx react-native run-ios
For Android:
npx react-native run-android
- Open the application on your emulator or physical device.
- Enter the text you want to encode into the QR code in the text input field.
- The QR code will be generated and displayed in real-time.
- (Feature to be implemented) Click the "Download QR Code" button to save the QR code image.
- App.js: The main entry point of the application.
- components/QR.js: The QR code generator component.
- styles.js: Contains the styling for the application.
- react: ^17.0.2
- react-native: ^0.66.0
- react-native-qrcode-svg: ^6.1.2
- react-native-view-shot: ^3.1.2
The app uses StyleSheet
from react-native
for styling. The styles are organized in a separate object within the component file.
- Implement the functionality for downloading the generated QR code image.
- Add error handling and validation for the text input.
- Improve the UI/UX design.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/yourFeature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/yourFeature
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE.md file for details.
This README file provides a comprehensive overview of the QR Code Generator application, including its features, requirements, installation steps, usage instructions, project structure, dependencies, future improvements, and contribution guidelines.