Animated Logo/QRCode with React Native Skia
Wednesday, April 3, 2024
Try the live demo
Scan to try on your device
Need the app?
demos
empty-qr-code
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A QR code component with share functionality and toggle animation.
What's This About?
This component creates a QR code display that:
Shows/hides with animation
Includes share functionality
Uses pressable scale feedback
Handles QR code generation
Technical Implementation
The component uses:
QR code generation
Ref-based toggle control
Pressable scale animations
Memoization for performance
Custom share sheet
Usage
type QRCodeShareProps = {
qrCodeValue: string;
};
// Basic usage
<EmptyQRCode />;
// Custom implementation
const qrCodeShareRef = useRef<QRCodeShareRefType>(null);
<PressableScale
onPress={() => {
qrCodeShareRef.current?.toggle();
}}
>
<QRCodeShare ref={qrCodeShareRef} qrCodeValue="https://example.com" />
</PressableScale>;
Unlock the beauty of React Native animations
Learn Reanimated, Gesture Handler & Skia with Reanimate.dev
Feedback on Empty Qr Code
Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback