Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Asset not loading for Sprite Sheet animation #136

Open
im-aditya opened this issue Aug 11, 2020 · 0 comments · May be fixed by #228
Open

Asset not loading for Sprite Sheet animation #136

im-aditya opened this issue Aug 11, 2020 · 0 comments · May be fixed by #228

Comments

@im-aditya
Copy link

Hi,

I’m trying to run Sprite Sheet animation using the example given here.
https://github.com/expo/expo-pixi/blob/master/examples/comprehensive/Examples/Basics/SpriteSheetAnimation.js
But it’s giving error on the line number 9

 const asset = Asset.fromModule(require(‘../../assets/pixi/fighter.json’));

Module [Object Object] is missing from the asset registry

Since the Asset.fromModule function from expo-asset only takes “number or string” as an argument and here a JSON object is getting passed.
Can anyone help with how to run Sprite Sheet animation with this library?

Thanks a lot

@Bartozzz Bartozzz linked a pull request May 29, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant