Combining multiple Properties of a View Model into multiple Instances of another VM

Hello,

I have been racking my brain over this for a couple of days now. Here is a screenshot of a simplified setup of what I am trying to achieve:

I am building an app with ReactNative, and there is a screen where I want the code to send me data (strings in this example), which I then manipulate and display in Rive.


My assumption is that it would be better for the code side to send all the required data through one View Model (‘external-texts’ here), with a property for each data. The alternative I had was to have multiple instances of ‘external-texts’ rather than multiple properties, but this feels… wrong?
Firstly, if you could confirm or infirm this assumption, this would be useful.


Secondly: going with the assumptions ‘external-texts’ should get the data through properties, I have been struggling to apply this data to components. This is a simplified example, but in my real use case, the ‘text’ component is quite complex and this is why I made it a component, so that I can edit and reuse it easily. The ‘shape’ is also a different component because it has its own layout complexities to handle.

However, I cannot find a way to assign the ‘external-text’ properties to different Instances of my ‘text and shape’ View Model, in my ‘main’ Arboard/View Model. My initial idea would have been to bind a property to another (not possible) so I could have bound the ‘external-texts’ properties to each instance of my ‘text and shape’ view model. That way, in my ‘main’ Artboard, I could have picked the Instances I want and display the external texts only in the components I’ve chosen.

Is there a way to do this at all in Rive presently? Am I going about this the wrong way? I tried different ideas like using converters, property groups… but I don’t see any way that would work with my reasoning. Perhaps I have missed a piece of the puzzle, or there is room for a feature request here?


Because I am stuck here, the only work-arounds I can see are:

  • using instances instead of multiple properties fields for my external data (or perhaps even completely different view model? e.g. a “red” and a “blue” separate view models? But I’m not sure if this is the best approach from the code perspective?

  • doing all the work in one artboard without using components so that I can bind them to whatever I need (because it’s not possible to expose the internal workings of a component). But this would add maintenance work anytime I update the design.

I hope this is clear enough, thank you very much for reading and sharing your insights!