Skip to content
All components
0:00/0:00

Shader

Ripple Reveal

A card that hides and reveals its content with a water ripple: one soft wave rolls across from your tap and carries the other face in.

Skia runtime shader + Reanimated + View snapshots

$7.99

Or get it with Pro

By buying you agree to the Terms and Licence. All sales are final.

Recorded on iPhone. Tapping the eye on a wallet card ripples the balance in and out of view.

Features

  • Tap and a single soft wave rolls across the card from that point
  • The wave bends the card and its edges and catches a glint of light as it passes
  • The other face comes in behind the wave and settles with a small spring
  • Any two views as the faces: a hidden balance and a shown one, a front and a back
  • Quick taps chain ripple after ripple without waiting
  • Three ready-made feels: default, calm and strong
  • Turns into a quick crossfade under Reduce Motion

Installation

1Install dependencies
npx expo install react-native-skia react-native-view-shot react-native-reanimated react-native-worklets expo-build-properties
2Raise Android's minimum version in app.json
{
  "expo": {
    "plugins": [
      ["expo-build-properties", { "android": { "minSdkVersion": 26 } }]
    ]
  }
}

Skia needs Android 8 or later.

3Run a development build (Expo Go can't load Skia)
npx expo run:ios   # or: npx expo run:android

Usage

import { StyleSheet, Text, View } from 'react-native';
import { RippleReveal } from '@/components/ripple-reveal';

export function Balance() {
  return (
    <RippleReveal
      toggleOnPress
      style={styles.card}
      front={
        <View style={[styles.face, styles.hidden]}>
          <Text style={styles.amount}>••••••</Text>
        </View>
      }
      back={
        <View style={[styles.face, styles.shown]}>
          <Text style={styles.amount}>$584,418</Text>
        </View>
      }
    />
  );
}

const styles = StyleSheet.create({
  card: { aspectRatio: 1.586, margin: 16 },
  face: { flex: 1, justifyContent: 'center', padding: 24 },
  hidden: { backgroundColor: '#111111' },
  shown: { backgroundColor: '#4B2BB8' },
  amount: { color: '#ffffff', fontSize: 40, fontWeight: '700' },
});

How it works

Both faces are real views stacked on top of each other. Shortly after the card settles, it takes a picture of each face and uploads it to the GPU, so a tap has nothing left to prepare. On a tap, a clock on the UI thread moves the wave forward, and one Skia shader bends both pictures around a single round crest, shades its slopes against the light and blends the new face in behind it. The real card comes back as soon as the wave has passed, so its buttons work again straight away.

More once you own it

Examples, the full list of props and every advanced option for Ripple Reveal are here for owners.

Next componentRolling Carousel
TesseraUI

Welcome back

Sign in to TesseraUI

Your purchases live in your account, so they open on every device you sign in on.

Sign-in isn’t available right now. Please try again in a moment.

By continuing you agree to the Terms, Licence and Privacy Policy.