From f1446157e487d5846d892f2ec39d46424a20165c Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Sat, 14 Mar 2026 22:01:47 -0400 Subject: [PATCH 1/3] feat(example): add start/stop toggle to looping animation demos --- example/src/App.tsx | 42 ++++++++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/example/src/App.tsx b/example/src/App.tsx index 8f4693f..211f55b 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -45,18 +45,23 @@ function ButtonDemo() { } function BannerDemo() { + const [playing, setPlaying] = useState(true); return (
@@ -68,24 +73,37 @@ function BannerDemo() { +
); } function PulseDemo() { + const [playing, setPlaying] = useState(true); return (
+
); } From b7a59e2fecfeadc0811cd0cc587e33f0149fefe9 Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Sat, 14 Mar 2026 22:38:28 -0400 Subject: [PATCH 2/3] fix(example): unmount looping views when stopped to cancel animations --- example/src/App.tsx | 72 +++++++++++++++++++++------------------------ 1 file changed, 34 insertions(+), 38 deletions(-) diff --git a/example/src/App.tsx b/example/src/App.tsx index 211f55b..e6c0098 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -49,29 +49,27 @@ function BannerDemo() { return (
- - - react-native-ease - - - react-native-ease - - + {playing && ( + + + react-native-ease + + + react-native-ease + + + )}