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

Shader

ASCII Sharks

A sea of tiny character tiles where sharks, drawn from those tiles, wander slowly across the screen.

Skia runtime shader + Reanimated

$12

Or get it with Pro

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

Recorded on iPhone. Sharks drawn in characters swim behind an email app's glass cards.

Features

  • Sharks made of shimmering characters swim behind your app
  • Eight species, from hammerheads to threshers, each with its own shape and swim
  • Calm, lifelike motion based on how real sharks swim and turn
  • Pick how many, how big, which kinds and what colours
  • Four ready-made looks: default, calm, a school, or a few giants
  • Follows light and dark mode on its own
  • Runs on iOS and Android, and holds still with Reduce Motion

Installation

1Install dependencies
npx expo install react-native-skia 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, View } from 'react-native';
import { AsciiSharks } from '@/components/ascii-sharks';

export function Background() {
  return (
    <View style={styles.screen}>
      <AsciiSharks style={StyleSheet.absoluteFill} />
    </View>
  );
}

const styles = StyleSheet.create({
  screen: { flex: 1 },
});

How it works

Every character on every tile shade is drawn once into a small image. Each frame, a worklet on the UI thread swims each shark: it cruises, turns toward open water every few seconds, bends into a C along the turn and veers away from its neighbours. One GPU shader then draws the whole sea in a single pass, picking the shark nearest each grid cell and drawing the matching character. The shapes are adapted from drewdi's MIT-licensed ascii-sharks.

More once you own it

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

Next componentGlass Shaders
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.