Lag and reset on initial Rive render – critical for onboarding (React Native)

Hi there 🙂,

I'm using a Rive animation directly on the first onboarding screen. The issue is that after a few seconds, the animation flickers or lags and resets the screen. This even happens after the user has moved on to the next screen - everything suddenly resets, which makes it unusable in production.

I managed to "work around" the issue by pre-rendering the animation during the splash screen (invisible to the user, as mentioned here: https://github.com/rive-app/rive-react-native/issues/260) and adding an artificial delay of around 3 seconds. However, this results in poor UX and the transition from the splash screen to onboarding still feels laggy or janky at times.

Is there a better, more reliable way to prevent this flicker/reset behavior?

Thanks a lot in advance!