GitHub Contributions with Reanimated
Tuesday, July 29, 2025
demos
github-contributions
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A beautiful, animated GitHub-style contribution calendar that brings your data to life. Watch as contribution squares cascade across the screen in a mesmerizing wave pattern, just like falling dominoes but way more elegant.
Touch anywhere on the screen and watch the magic happen. Each square animates in with a smooth spring animation, creating a wave that flows from bottom-left to top-right. The colors transition smoothly from empty to filled, showing different contribution levels just like GitHub's contribution graph.
Inspired by @mykolaharmash
The Code Structure
src/
├── contribution-calendar/
│ ├── index.tsx # Main calendar component
│ ├── contribution-square.tsx # Individual animated squares
│ ├── types.tsx # TypeScript definitions
│ └── utils/
│ ├── animation-utils.tsx # Animation timing calculations
│ └── date-utils.tsx # Date handling utilities
├── config/
│ └── defaults.tsx # Color schemes and settings
├── contribution-data.tsx # Sample data generator
└── index.tsx # App entry point
Features
Smooth Animations: Spring-based animations with configurable timing
Multiple Color Schemes: GitHub green, blue, and purple themes
Responsive Design: Adapts to different screen sizes automatically
TypeScript Support: Fully typed for better development experience
Touch Interaction: Tap anywhere to start/stop animations
Realistic Data: Generates sample contribution data or accepts custom data
Custom Data Format
Provide your own contribution data using the ContributionData format:
import { ContributionData } from './src/contribution-calendar/types';
const customData: ContributionData = {
'2024-01-01': 3, // High activity
'2024-01-02': 1, // Low activity
'2024-01-03': 0, // No activity
'2024-01-04': 4, // Very high activity
'2024-01-05': 2, // Medium activity
// ... more dates
};
<GitHubContributionCalendar data={customData} />;
Color Schemes
Choose from predefined color schemes or create your own:
import { COLOR_SCHEMES } from './src/config/defaults';
// Predefined schemes
<GitHubContributionCalendar colorScheme={COLOR_SCHEMES.github} />
<GitHubContributionCalendar colorScheme={COLOR_SCHEMES.blue} />
<GitHubContributionCalendar colorScheme={COLOR_SCHEMES.purple} />
// Custom scheme
const customScheme = {
level0: '#f1f8ff', // No contributions
level1: '#c6e48b', // Low
level2: '#7bc96f', // Medium
level3: '#239a3b', // High
level4: '#196127', // Very high
};
<GitHubContributionCalendar colorScheme={customScheme} />
Unlock the beauty of React Native animations
Learn Reanimated, Gesture Handler & Skia with Reanimate.dev
Feedback on Github Contributions
Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback