Skip to content

âš›ī¸ SpriteStudio Player for React Native

Play SpriteStudio animations in React Native apps, on the New Architecture, through a <SpriteStudioView> component.

Code-first - and a development build, not Expo Go

The package compiles into your app's own binary, so Expo Go cannot run it: make a development build with npx expo prebuild, then npx expo run:ios / run:android.

1. What you install - react-native-spritestudio and its native peers, added with npx expo install - see Installation.

2. .sspj -> .ssab - React Native has no editor to host an importer in, so this is a host-side step with the browser's ssconverter-web, SSConverter GUI or the SDK's ssconverter-cli - see Converting Assets. The pack folder ships as a native app asset through the package's Expo config plugin.

3. Getting it on screen - a <SpriteStudioView> whose source names the pack by its path inside that asset folder.

The geometry and the draw run natively through React Native Skia, so what JavaScript does each frame is the same few calls per animation on screen, however complex it is. Alongside the view it ships <SpriteStudioScene>, which draws a whole cast through one canvas and one clock.

The steps, with the folders they use, are in the README's Quick Start.