3

Is it possible to do sprite sheet based animation with React Native? It appears that you have to load individual images, rather than a sprite sheet.

Hamicorn Fury
  • 751
  • 6
  • 8
  • wrote something instead, here it is [react-native-animated-sprite](https://www.npmjs.com/package/react-native-animated-sprite) and at [github](https://github.com/micahrye/react-native-animated-sprite) – Hamicorn Fury Feb 17 '17 at 01:17

1 Answers1

0

Not quite a single sprite sheet, but react-native-sprite bridges UIImageView to support animating a sequence of images natively.

It might be possible to bring SpriteKit to react-native. In that case, you can compile a single sprite sheet using texture atlas.

William Ngan
  • 148
  • 5
  • I wrote something similar to react-native-sprite, thanks for the info. – Hamicorn Fury Nov 04 '16 at 02:54
  • @HamicornFury would you be willing to share the code you wrote? I have a need for this at the moment. – Tom Feb 01 '17 at 23:31
  • sure, just made it easy to get [react-native-animated-sprite](https://www.npmjs.com/package/react-native-animated-sprite) and at [github](https://github.com/micahrye/react-native-animated-sprite) – Hamicorn Fury Feb 17 '17 at 01:14