Sign in to Reactiive

Use your Google or Apple account.
Signing in subscribes you to the newsletter: new content and the occasional promotion. Unsubscribe at any time.
Skip to content

Animated Logo/QRCode with React Native Skia

Wednesday, April 3, 2024
enzomanuelmangano
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