A React Native application featuring a card management interface with freeze functionality and modern UI design.
Trivy is a mobile application that provides a card management interface with the following key features:
- Card Details Display: Shows card information with a modern, clean design
- Freeze Animation: Interactive freeze/unfreeze functionality with visual effects
- Bottom Navigation: Tab-based navigation system
- Responsive Design: Pixel-perfect UI matching Figma design specifications
- Random Data Generation: Uses faker.js for dynamic card data
- Card component with front/back display
- Freeze animation with visual effects
- Bottom tab navigation
- Modern design with Poppins font family
- Frontend: React Native
- Navigation: React Navigation
- Data Generation: Faker.js
- Styling: React Native StyleSheet
- Fonts: Poppins (Google Fonts)
trivy-1a/
├── src/
│ ├── assets/
│ │ ├── fonts/ # Poppins font files
│ │ └── images/ # App icons and images
│ ├── components/ # Reusable UI components
│ ├── screens/ # App screens
│ └── utils/ # Utility functions
├── android/ # Android-specific files
├── ios/ # iOS-specific files
└── __tests__/ # Test files
Make sure you have completed the React Native Environment Setup before proceeding.
-
Clone the repository
git clone <repository-url> cd trivy-1a
-
Install dependencies
npm install # or yarn install
-
Install fonts (if needed) Download and add the Poppins font files to
src/assets/fonts/
if not already present.
# Using npm
npm start
# OR using Yarn
yarn start
# Using npm
npm run android
# OR using Yarn
yarn android
# Install CocoaPods dependencies (first time only)
bundle install
bundle exec pod install
# Run the app
npm run ios
# OR
yarn ios
App.js
- Main application entry pointsrc/screens/
- Screen componentssrc/components/
- Reusable UI componentssrc/assets/
- Fonts and images
npm start
- Start Metro bundlernpm run android
- Run on Androidnpm run ios
- Run on iOSnpm test
- Run tests
The app implements a pixel-perfect design with:
- 95%+ accuracy to Figma specifications
- Responsive layout for different screen sizes
- Smooth animations for freeze functionality
- Modern UI with clean typography and spacing
The app includes comprehensive testing setup:
- Unit tests for components
- Integration tests for screens
- UI testing for animations
-
Metro bundler issues
npx react-native start --reset-cache
-
Android build issues
cd android && ./gradlew clean
-
iOS build issues
cd ios && pod install
- Follow the existing code style
- Add tests for new features
- Update documentation as needed
- Ensure all tests pass before submitting
This project is licensed under the MIT License.
For more information about React Native, visit the official documentation.