UNPKG

react-native-lunar-calendars

Version:

React Native Calendar Components with Lunar Calendar Support - Fork of react-native-calendars with Vietnamese lunar calendar functionality

115 lines (87 loc) β€’ 3.83 kB
# React Native Lunar Calendars - Library Completion Summary ## 🎯 Overview The `react-native-lunar-calendars` library has been completed with full features and documentation. This is a fork of `react-native-calendars` with added Vietnamese lunar calendar functionality. ## βœ… What Has Been Completed ### 1. Author Information - βœ… Updated author: **Tuan Nguyen (Ky0-Nguyen)** - βœ… GitHub profile: https://github.com/Ky0-Nguyen - βœ… Repository URL: https://github.com/Ky0-Nguyen/react-native-lunar-calendars - βœ… License: MIT with copyright of both Wix.com and Tuan Nguyen ### 2. Package Information - βœ… Version: 2.1.0 - βœ… Description: Detailed lunar calendar features - βœ… Keywords: react-native, calendar, lunar, vietnamese, am-lich - βœ… Homepage: Link to repository - βœ… Upstream tracking: Information about original library ### 3. Documentation - βœ… **README.md**: Detailed guide with examples - βœ… **CHANGELOG.md**: Change history - βœ… **CONTRIBUTING.md**: Contribution guidelines - βœ… **CODE_OF_CONDUCT.md**: Code of conduct - βœ… **UPSTREAM_SYNC.md**: Upstream sync guide - βœ… **SUMMARY.md**: Completion summary ### 4. GitHub Templates - βœ… **Issue Template**: Templates for bug reports and feature requests - βœ… **Pull Request Template**: Template for PRs - βœ… **GitHub Actions**: Automated workflow to check upstream updates ### 5. Lunar Calendar Features - βœ… **Lunar Date Calculation**: Accurate lunar date calculation algorithm - βœ… **Date Range**: Support for years 1800-2199 - βœ… **Display**: Shows lunar dates below solar dates - βœ… **Special Days**: First day of lunar month highlighted in red - βœ… **Multiple Marking Types**: Supports all marking types from original library ### 6. Compatibility - βœ… **100% API Compatible**: Fully compatible with original library - βœ… **Migration Guide**: Guide for migration from original library - βœ… **Upstream Sync Strategy**: Strategy for syncing with upstream ### 7. Technical Stack - βœ… **TypeScript**: Full type definitions - βœ… **React Native**: Compatible with 0.47+ - βœ… **Build System**: TypeScript compilation - βœ… **Testing**: Jest test framework ## πŸ”„ Upstream Sync Strategy ### When Original Library Updates 1. **Monitoring**: GitHub Action automatically checks for updates weekly 2. **Evaluation**: Assess compatibility with lunar features 3. **Merging**: Carefully merge to preserve lunar functionality 4. **Testing**: Fully test lunar calendar features 5. **Release**: Publish new version with both upstream and lunar improvements ### Critical Files to Preserve - `src/calendar/day/multi-period/index.js` - Lunar date calculations - Lunar date constants and algorithms - Lunar date display logic ## πŸ“¦ Installation & Usage ```bash # Install npm install --save react-native-lunar-calendars # Import import { Calendar } from 'react-native-lunar-calendars'; # Usage <Calendar markingType={'multi-period'} // Lunar dates sαΊ½ tα»± Δ‘α»™ng hiển thα»‹ /> ``` ## 🎯 Migration from react-native-calendars ```javascript // Before import { Calendar } from 'react-native-calendars'; // After import { Calendar } from 'react-native-lunar-calendars'; // All existing code still works + lunar features ``` ## πŸ“ˆ Next Steps 1. **Publish to npm**: `npm publish` 2. **Create GitHub Release**: Tag v2.1.0 3. **Monitor Issues**: Track community feedback 4. **Regular Sync**: Sync with upstream when updates are available 5. **Enhancements**: Add new lunar calendar features ## πŸ”— Links - **Repository**: https://github.com/Ky0-Nguyen/react-native-lunar-calendars - **Upstream**: https://github.com/wix/react-native-calendars - **Author**: https://github.com/Ky0-Nguyen - **Documentation**: See README.md --- **Author**: Tuan Nguyen (Ky0-Nguyen) **Completion Date**: December 2024 **Version**: 2.1.0