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

Card Shader Reflections with React Native Skia

Thursday, February 27, 2025
enzomanuelmangano
demos
card-shader-reflections
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
I wasted a whole day asking questions to Cursor to get this working.
It was worth it :)
While the code is functional, it still needs some refinement (updates coming in the next few days).

Description

This is a minimalist card carousel that uses interpolation to create a perspective effect.
The most challenging aspect lies in the CardCanvas component, which handles the shader implementation. The design was inspired by the Trade Republic app.
While the current implementation works, it needs improvement - particularly the shader code, which has to be more readable and maintainable.

Project Structure

src/ ├── components/ │ └── card-carousel/ │ ├── card/ │ │ ├── card.component.tsx # The star of the show │ │ ├── card-canvas.component.tsx # Where the magic happens │ │ ├── card-chip.component.tsx # That cool chip on your card │ │ ├── card.shader.ts # Special effects central │ │ └── card.styles.ts # Making it look pretty │ ├── utils/ │ │ ├── constants.ts # Our helpful constants │ │ └── types.ts # TypeScript goodness │ ├── card-carousel.tsx # The main carousel │ └── card-carousel.styles.ts # Carousel styling └── index.tsx # Where it all begins

Unlock the beauty of React Native animations

Learn Reanimated, Gesture Handler & Skia with Reanimate.dev

Feedback on Card Shader Reflections

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