Lightning Strike Streak Counter
A bolt strikes from a night sky, flashes the whole screen and shakes the UI while the streak count rolls up and the day's checkmark lights. Built with Skia and SVG in React Native, as a daily-goal reward moment.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "lightning-strike-streak-counter" to this project. The full source is attached at the end of this prompt. Put the files under components/lightning-strike-streak-counter/, install the listed dependencies with `npx expo install`, and render it on a route I can open. Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply. === Source files are attached here for paid plans ===
Details
- Platforms
- iOS, Android
- Requires
- Expo SDK 54+
- Access
- Pro
- Updated
- 24 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @Anuar_DesignX on X
Are you the designer? Ask us to change or remove this.
Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs
What it does
A deep-blue streak screen with a large extruded number 4 glowing blue, a headline, a row of seven day capsules and a Continue button. After about a second the interface dims and small flickers appear around the number. Then a bolt strikes, the count changes to 5, and three strobe pulses follow with a brief screen shake, a lit storm sky, a shock ring and sparks. The afterglow fades over a couple of seconds, the fifth day lights up with a check mark, and the number returns from flat white to a blue gradient. The six-second sequence loops. Props set the starting day, the width, a frozen moment, or play-once mode with a strike callback.
How it's built
The storm sky is one SkSL runtime shader on a Skia canvas, built from layered noise with warped clouds and an off-center light. A scene module draws the number and the lightning through an adapter that targets Skia here and Canvas2D in the web preview, so both share one set of drawing calls. Bolts come from a generator in the shared core, and the afterglow follows a recorded intensity table. A requestAnimationFrame loop drives time. react-native-svg draws the day capsules, and expo-font loads the typefaces.
Good for
- Daily streak or habit screens in learning, fitness and productivity apps
- A reward moment when a counter ticks up
- Game or challenge screens that need a high-impact full-screen effect
Dependencies
@shopify/react-native-skiareact-native-svgexpo-fontreact-native