Menu

Sky shaders at 120fps in React Native with Skia
📰

Sky shaders at 120fps in React Native with Skia

DEV Community: mobile·Odd Eggs Studio·12 days ago
#69wA7K60
#devtomobile#devto#dev#blur#frame
Reading 0:00
15s threshold

6pm's sky is one React Native Skia canvas drawn behind the Today screen: a time-of-day gradient, drifting blooms, sun, halftone, grain, rain and three "living scenes". It stays cheap by baking anything expensive once (blurs, noise, rain), keeping per-frame work to gradients and textures, and stepping slow motion at 30 Hz while scrolling still moves every frame.

The code is in apps/mobile/src/ui/sky in the 6pm repo . Versions: @shopify/react-native-skia 2.13.1, react-native-reanimated 4.7.0, Expo 58, React Native 0.88.

Where it started: a sky made of CSS

6pm's design is an HTML prototype. Its sky is a stack of absolutely positioned divs: a three-stop linear gradient, three radial "blooms" softened with filter: blur() , a sun with rings and a flare, an SVG feTurbulence grain tile with mix-blend-mode: overlay , a halftone made of a tiled radial-gradient , light leaks, a vignette, and per-theme extras.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.