🚀 A production-ready React Native boilerplate with TypeScript, Redux Toolkit, React Navigation, and enterprise-level architecture.
- ⚡ React Native 0.73 with TypeScript
- 🎯 Feature-based architecture for scalability
- 🔐 Authentication with JWT and biometric support
- 📱 Navigation with React Navigation 6
- 🗄️ State Management with Redux Toolkit
- 🌐 API Integration with Axios and React Query
- 🎨 Theming support (light/dark mode)
- 🧪 Testing with Jest and React Native Testing Library
- 📊 Analytics integration ready
- 🔒 Security best practices
src/
├── app/ # App configuration
│ ├── index.tsx # Root component
│ └── navigation/ # Navigation setup
├── features/ # Feature modules
│ └── auth/ # Authentication feature
├── shared/ # Shared components & utilities
├── core/ # Core infrastructure
└── assets/ # Images, fonts, animations
- Node.js 18+
- React Native development environment set up
- iOS: Xcode 14+ and CocoaPods
- Android: Android Studio and JDK 11+
# Clone the repository
git clone <your-repo>
cd react-native-boilerplate
# Install dependencies
npm install
# iOS: Install pods
cd ios && pod install && cd ..
# Copy environment file
cp .env.example .env.development
# Run on iOS
npm run ios
# Run on Android
npm run android- Architecture Documentation
- Contributing Guidelines
- API Integration Guide
- Testing Guide
- Deployment Guide
npm run ios # Run on iOS simulator
npm run android # Run on Android emulator
npm test # Run unit tests
npm run test:coverage # Run tests with coverage
npm run lint # Lint code
npm run format # Format code with Prettier
npm run type-check # TypeScript type checkingThis boilerplate follows Clean Architecture principles with:
- Presentation Layer: UI components and screens
- Domain Layer: Business logic and use cases
- Data Layer: API calls and data management
- Feature-based folder structure
- Repository pattern for data access
- Custom hooks for business logic
- Service layer for API calls
- Redux slices for feature state
| Category | Technology |
|---|---|
| Framework | React Native 0.73 |
| Language | TypeScript 5.3 |
| State | Redux Toolkit |
| Navigation | React Navigation 6 |
| API | Axios + React Query |
| Forms | React Hook Form + Zod |
| Testing | Jest + RNTL |
| E2E | Detox |
- Secure token storage with Keychain/Keystore
- Biometric authentication support
- Certificate pinning ready
- Code obfuscation with ProGuard/Hermes
- Hermes engine enabled
- Lazy loading and code splitting
- Image optimization
- Memoization strategies
- FlatList optimizations
# Unit tests
npm test
# Watch mode
npm run test:watch
# Coverage
npm run test:coverage
# E2E tests
npm run test:e2e:ios
npm run test:e2e:android- Configure signing in Xcode
- Build:
npm run build:ios - Upload to App Store Connect
- Generate keystore
- Build:
npm run build:android - Upload to Google Play Console
See CONTRIBUTING.md for guidelines.
MIT License - see LICENSE file.
Smashtechhub Team
Built with ❤️ for enterprise applications