rive-app / rive-react

React runtime for Rive

Home Page:https://rive-app.github.io/rive-react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Offline functionality.

felix-wolf opened this issue · comments

I am creating an Electron Application using React as a frontend framework that is likely to be used in an offline scenario.

I would like to play a Rive animation, but the library tries to access https://unpkg.com/@rive-app/canvas@1.0.95/rive.wasm. Is there a way to play the animation without accessing anything from the web first?

You should be able to load in the WASM yourself by hosting it where needed:
https://help.rive.app/runtimes/overview/web-js/preloading-wasm

I will check this out, thank you.