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

Fluid Slider with React Native Skia ๐ŸŒŠ

Friday, May 26, 2023
enzomanuelmangano
demos
fluid-slider
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A slider component with fluid metaball effects and dynamic value display.

What's This About?

This component implements a modern slider control that features fluid animations through metaball effects. As users interact with the slider, a dynamic bubble follows the touch point, displaying the current value. The slider adapts to different screen sizes while maintaining smooth animations and precise touch handling.

Technical Implementation

The component uses:
Skia for metaball effects
Responsive sizing
Gesture handling
Value interpolation
Window dimensions

Usage

type FluidSliderProps = { width: number; height: number; }; // Basic usage const { width } = useWindowDimensions(); <FluidSlider width={width * 0.9} height={110} />; // Note: Height should account for the // animated metaball with text

Unlock the beauty of React Native animations

Learn Reanimated, Gesture Handler & Skia with Reanimate.dev

Feedback on Fluid Slider

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