Brief blank frame when showing a preloaded Rive animation for the first time
Hi! I’m using @rive-app/react-native 0.4.11 with Expo SDK 57.
I load a local .riv file at the app root with useRiveFile and share the resulting RiveFile through context. Even though the file is already loaded, the RiveView briefly appears blank the first time it is shown during onboarding. If I open the same animation again later from Settings, it appears immediately.
It seems that useRive() and awaitViewReady() confirm that the view is initialized, but not necessarily that its first frame has been rendered on screen. I also experimented with displaying a matching PNG poster while Rive initializes, but swapping between them without a visible flash was difficult.
Has anyone encountered this? Is there a recommended way to:
prepare the first rendered frame before showing the view;
keep and reuse a native Rive view across screens;
detect when the first frame is actually visible;
or otherwise avoid the initial blank frame?
I’d appreciate hearing what has worked reliably in production.