✅ Android animations not working

Hey Rive support, I’m a developer and my team is working to see if we can incorporate Rive into our web and mobile application. We are using a single .riv file with two artboards and several animations for each artboard as an experiment.

Web is working well with @rive-app/react-canvas. Our mobile application is using rive-react-native v9.2.0. We are able to get iOS to load the artboards and animations without much issue, but android has been much more difficult. It would appear that the correct artboard layout is loading in, but the animation is not firing or hitting it’s end state. Just the initial empty artboard is shown. It’s unclear to me if this is build or implementation related as there are also no error messages to follow through with.

Things we’ve tried:

  • Setting Kotlin Dependency Resolution as per the docs, despite our Kotlin version being 1.9.22. With/without dependency there is no difference

  • Importing the .riv file via url (stored on S3) or via resourceName (stored in location specified in docs for android). Again, either one does not make a difference and both seem to hit the same state where the animation does not fire

  • Invoking the animation and artboards via `animationName` and `artboardName`, as well as with a ref using `setInputState`. Again, same result

  • Re-uploading the .riv file

Here’s an example code snippet (yes, the animationName does have an extra space at the end of the string):

import Rive from 'rive-react-native';

<Rive

  resourceName="streak_progress_spike"

  artboardName="6 order gauge"

  animationName="1 order "

  style={{ height: 60, width: '100%' }}

/>

Again, we know web + iOS work with this riv file and artboard/animation configuration but there’s something about android that isn’t playing nice. The lack of error logging is making tracking down the problem very difficult, we’re just taking shots in the dark.

There’s also a bit of uncertainty if certain parts of the android documentation are specific to rive-android vs rive-react-native. We’ve been operating under the assumption that rive-android is it’s own separate entity with regards to the extra configuration / initialization required.

Attaching the .riv file we’re using for reference. Any help would be much appreciated, thanks!

streak_progress_spike.riv