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

Slide to Reveal with React Native Skia 🪄

Wednesday, November 29, 2023
enzomanuelmangano
demos
slide-to-reveal
An ongoing collection of React Native animations crafted with Reanimated, Gesture Handler, and Skia.
TypeScript
3.2k
296
A slide-to-reveal component with gesture-based interaction.

What's This About?

This component creates an interactive slide-to-reveal interface where users can slide to reveal a hidden code or content. It features a customizable width and height that adapts to the screen size, and supports gesture handling for smooth sliding interactions. The implementation is perfect for verification screens, security features, or any interface requiring a sliding gesture to reveal information.

Technical Implementation

The component uses:
Gesture handling
Screen adaptation
Code revelation
Size customization
Interactive sliding

Usage

// Basic usage <SlideToReveal /> // With custom dimensions and code <SlideToReveal code={112358} width={windowWidth * 0.6} height={80} /> // Full implementation <GestureHandlerRootView style={{ flex: 1 }}> <View style={styles.container}> <SlideToReveal code={112358} width={windowWidth * 0.6} height={80} /> </View> </GestureHandlerRootView> // Window dimensions const { width: windowWidth } = useWindowDimensions();

Unlock the beauty of React Native animations

Learn Reanimated, Gesture Handler & Skia with Reanimate.dev

Feedback on Slide To Reveal

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