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

Shader

Northern Lights

Curtains of aurora light drift down from the top of the screen over twinkling stars, and a glass wave sweeps them away.

Skia runtime shader + Reanimated

$5.99was $9.99, −40%

Or get it with Pro

Black Friday

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

Recorded on iPhone. An aurora paywall that a glass wave sweeps away to reveal tonight's sky, with the paywall riding the wave.

Features

  • Soft curtains of light drift down from the top of the screen, slow and calm like a real aurora
  • Faint stars twinkle behind the light
  • A glass wave sweeps the aurora away from any point, then plays back to bring it home
  • Your buttons and text ride the wave: they lift as it passes, bob gently and settle
  • Four ready-made colours: aurora green, magenta, ember and glacier
  • Set how far the light reaches, how many rays, how much it sways and how bright it glows
  • Drops behind any screen, card or button and lets touches through
  • 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, Text, View } from 'react-native';
import { NorthernLights } from '@/components/northern-lights';

export function Sky() {
  return (
    <View style={styles.screen}>
      <NorthernLights />
      <Text style={styles.title}>Tonight</Text>
    </View>
  );
}

const styles = StyleSheet.create({
  screen: { flex: 1, justifyContent: 'center', backgroundColor: '#000' },
  title: { color: '#fff', fontSize: 32, textAlign: 'center' },
});

How it works

One Skia shader draws the whole sky on the GPU: rays of light fan down from a point above the top edge, fade into the base colour and sway slowly over a field of twinkling stars. The drift redraws about 30 times a second, which is smooth for something this slow and keeps the phone cool; while a wave runs it steps every frame so the two move together. A wave sweeps a refracting glass dome out from where it starts, bending the rays under it and leaving a faint frosted haze behind. The ray shape is adapted from Paper Shaders' Apache-2.0 god rays.

More once you own it

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

Next componentMagazine Wheel
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.