Skip to content

feat(example): add start/stop toggle to looping animation demos#6

Merged
janicduplessis merged 3 commits intomainfrom
feat/loop-toggle
Mar 15, 2026
Merged

feat(example): add start/stop toggle to looping animation demos#6
janicduplessis merged 3 commits intomainfrom
feat/loop-toggle

Conversation

@janicduplessis
Copy link
Copy Markdown
Collaborator

@janicduplessis janicduplessis commented Mar 15, 2026

Description

The example app has two demos with infinite looping animations (Scrolling Banner and Pulse) that prevent Android uiautomator from reaching idle state, breaking agent-device snapshot and accessibility-based automation tools. This adds start/stop controls to both demos.

Solution

Each looping demo gets a playing state (default false) with a Start/Stop toggle button. When stopped, the EaseView is unmounted entirely, which cancels the native animation. Tapping Start mounts the component, starting the animation. Demos default to stopped so UI automation tools work immediately on app launch.

iOS

iOS demo

Android

Android demo

Test plan

  • Built and ran on iOS simulator (iPhone 17 Pro, iOS 26.2)
  • Built and ran on Android device (Samsung Galaxy S21+)
  • Verified demos start in stopped state (no looping animation on mount)
  • Verified Start mounts the animated view and animation begins
  • Verified Stop unmounts the view and cancels the animation
  • All CI checks pass (lint, types, build-library, build-ios, build-android)

@janicduplessis janicduplessis merged commit 28bebd2 into main Mar 15, 2026
4 checks passed
@janicduplessis janicduplessis deleted the feat/loop-toggle branch March 15, 2026 03:18
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