Skip to content

React Native: paused prop that holds the face and stops every timer - #17

Merged
ajibadedapo merged 2 commits into
mainfrom
paused-faces
Oct 23, 2026
Merged

ajibadedapo merged 2 commits into
mainfrom
paused-faces

Conversation

@ajibadedapo

Copy link
Copy Markdown
Owner

Adds a paused prop to the React Native AgentFace.

While paused, the face stops its ticker, springs and loops, so it costs almost no CPU. It keeps its expression, ornament, glyph and size, and nothing remounts. Loops and confetti finish their current cycle and then rest, so confetti lands instead of freezing mid-air. Waking starts them again with their normal delays, and the two ripple rings keep their stagger.

Why: an app that shows several live faces kept them animating while they were off screen or the app was in the background. With paused the app can rest faces it is not showing.

Tests: 9 new tests cover holding the frame, no remount, the ticker stopping, confetti landing, ripple stagger and the spinner finishing its turn. The full suite, typecheck, lint and build pass.

Minor release (changeset included).

@ajibadedapo
ajibadedapo merged commit e5996d9 into main Oct 23, 2026
2 checks passed
@ajibadedapo
ajibadedapo deleted the paused-faces branch October 23, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant