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

Enhanced Fibonacci Sphere with React Native Skia ๐ŸŒ

Wednesday, January 24, 2024
enzomanuelmangano
demos
fibonacci-shader-grid
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A shader-based grid animation with interactive controls for pattern customization.

What's This About?

This component creates a shader grid that:
Shows multiple pattern instances
Provides control panel
Allows pattern adjustment
Handles performance scaling
Supports value constraints

Technical Implementation

The component uses:
Skia shader rendering
Control panel interface
Value range management
Performance optimization
Dynamic shader updates

Usage

// Basic usage <FibonacciShaderGrid />; // Configuration constants const RESCALE_FACTOR = 3; const MIN_CIRCLES_AMOUNT = 5; const MAX_CIRCLES_AMOUNT = 175; const MIN_MAGICAL_MUL = 1.2; const MAX_MAGICAL_MUL = 3.6; // Control values const n = useSharedValue(INITIAL_CIRCLES_AMOUNT); const magicalMul = useSharedValue(INITIAL_MAGICAL_MUL); // Control panel <ControlPanel n={n} magicalMul={magicalMul} minN={MIN_CIRCLES_AMOUNT} maxN={MAX_CIRCLES_AMOUNT} minMagicalMul={MIN_MAGICAL_MUL} maxMagicalMul={MAX_MAGICAL_MUL} />;

Unlock the beauty of React Native animations

Learn Reanimated, Gesture Handler & Skia with Reanimate.dev

Feedback on Fibonacci Shader Grid

Ideas, bugs, or anything that felt off: I read every message. For anything else, write to hello@reactiive.io.
Send feedback