Skip to content

Commit 47f4a51

Browse files
committed
fix: skip autoPlay test on both experimental backends
1 parent efd8521 commit 47f4a51

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

example/__tests__/autoplay.harness.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ import {
1717
} from '@rive-app/react-native';
1818
import type { ViewModelInstance } from '@rive-app/react-native';
1919

20-
const isExperimentalIOS =
21-
Platform.OS === 'ios' && RiveFileFactory.getBackend() === 'experimental';
20+
const isExperimental = RiveFileFactory.getBackend() === 'experimental';
2221

2322
// Bouncing ball .riv with a "ypos" ViewModel number property that changes during playback
2423
// Source: https://rive.app/community/files/25997-48571-demo-for-tracking-rive-property-in-react-native/
@@ -183,8 +182,8 @@ describe('autoPlay prop (issue #138)', () => {
183182
});
184183

185184
it('autoPlay={false} does not change ypos property', async () => {
186-
if (isExperimentalIOS) {
187-
return; // experimental SDK has no pause API — RiveUIView always advances
185+
if (isExperimental) {
186+
return; // experimental SDK has no pause API — always advances
188187
}
189188
const { file, instance } = await loadBouncingBall();
190189

0 commit comments

Comments
 (0)