Threads Holo Ticket
Tuesday, January 14, 2025
demos
threads-holo-ticket
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A React Native demo showcasing an interactive, flippable holographic ticket component built with Expo. Features a beautiful holographic effect using Skia for high-performance graphics.
Features
Interactive 3D flippable ticket with smooth animations
Stunning holographic card effect with dynamic gradient patterns
Gesture-based interaction (pan and tap)
Built with TypeScript for type safety
Project Structure
src/
├── components/
│ ├── ticket/
│ │ ├── front-side.tsx # Front side of the ticket with event details
│ │ ├── back-side.tsx # Back side with QR code
│ │ └── index.tsx # Main ticket component with flip animation
│ └── holographic-card.tsx # Holographic effect using Skia
└── index.tsx # App entry point
Usage
The Ticket component is the main component that provides the flippable ticket functionality:
import { Ticket } from './components/ticket';
import { FrontSide } from './components/ticket/front-side';
import { BackSide } from './components/ticket/back-side';
const App = () => {
return (
<View style={styles.container}>
<Ticket
width={300}
height={400}
frontSide={<FrontSide />}
backSide={<BackSide />}
/>
</View>
);
};
Props
width: Width of the ticket in pixels
height: Height of the ticket in pixels
frontSide: React component to render on the front of the ticket
backSide: React component to render on the back of the ticket
Interactions
Pan: Swipe horizontally to rotate the ticket
Tap: Tap to snap the ticket to the nearest complete rotation
Holographic Effect: The holographic pattern responds to the ticket's rotation
Unlock the beauty of React Native animations
Learn Reanimated, Gesture Handler & Skia with Reanimate.dev
Feedback on Threads Holo Ticket
Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback