Flame Shader Onboarding with Streak Slider
A streak card lit by a full-screen flame, a ring of habit pills around a dark ember, and a vertical slider filled with fire for choosing streak length. The flame is a 6.4s continuous loop from one SkSL and GLSL source.
export function Example() {
const progress = useSharedValue(0);
…
Agent prompt
Add the Now In Code component "flame-shader-onboarding-with-streak-slider" to this project. The full source is attached at the end of this prompt. Put the files under components/flame-shader-onboarding-with-streak-slider/, 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
- 20 Nov 2026
- License
- Unlimited commercial projects
- Original design
- @AmenaiSabuwala 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
Three onboarding screens for a habit app, each with a live flame effect. The first shows a black card with a huge streak number whose top edge is lit by a field of orange and white fire, with the glow spilling into the card and along its sides. The second is a round fireball with six habit pills in a ring around it, and tapping a pill selects it, moves an orange dot beside its label and redraws the connecting line. The third is a vertical capsule slider filled with a hot gradient, where tapping or dragging snaps between four streak lengths and the readout follows the fill level.
How it's built
Three SkSL runtime effects from Skia draw the screens: a full-screen flame with a rounded-card distance field, a round fireball, and a capsule fill with a liquid line. Large-scale light and shade are reconstructed from keyframed weights of radial basis functions fitted to the reference frames, and procedural noise adds the flame tongues and grain, looping with no visible join. Weights and phase are computed on the UI thread from the Skia clock, so there is no React re-render per frame. Pill selection uses the built-in Animated API, and the slider fill uses Reanimated timing. Text and tick marks are views and SVG.
Good for
- A streak or habit-tracking onboarding that needs a distinctive hero effect
- A fire or glow background behind a large counter
- A snap-to-value vertical slider for choosing a goal length
Dependencies
@shopify/react-native-skiareact-native-reanimatedreact-native-svgreact-native