You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a problem. my .riv file is in local, and It's packaged into base64,in dev,the loadRiveFile is work,but in prod,the loadRiveFile is not work.
i guess there's something wrong with fetch.
this is my code
importriveWASMResourcefrom'@rive-app/canvas/rive.wasm'import{useRive,RuntimeLoader}from"@rive-app/react-canvas"importloadingRivfrom"src/static/pic/rive/loading.riv"RuntimeLoader.setWasmUrl(riveWASMResource)constLoading=()=>{const{RiveComponent}=useRive({// loadingRiv is packaged to base64src: loadingRiv,autoplay: true,// stateMachines: "State Machine 1"onLoadError: ()=>console.log("ERROR LOADING RIVE"),onLoad: ()=>console.log("LOADED RIVE"),},{fitCanvasToArtboardHeight: true,})return(<div><RiveComponentstyle={{width: "120px",height: "120px"}}/></div>)}
This pull request addresses the following GitHub issues and more:
- [rive-ios #345](rive-app/rive-ios#345)
- [rive-react-native #268](rive-app/rive-react-native#268)
Thanks to some help from @luigi-rosso, we discovered that the iOS runtime build scripts were _not_ including the Yoga renames, causing a collision when some frameworks were statically linked in React Native environments.
This has been tested locally, and works, but the real test will be the public.
Diffs=
437688c18e Add yoga renames to non-v2 lua build scripts (#8693)
Hi, I have a problem. my
.riv
file is in local, and It's packaged into base64,in dev,the loadRiveFile is work,but in prod,the loadRiveFile is not work.i guess there's something wrong with fetch.
this is my code
@rive-app/react-canvas @4.7.1
@rive-app/canvas @2.9.2
By the way, does rive support ie11
thanks
The text was updated successfully, but these errors were encountered: