Bind rive to viewModel

This commit is contained in:
Lance
2025-05-01 15:45:20 -06:00
parent 00aa39370d
commit c02812bea7

View File

@@ -19,7 +19,7 @@ const DataBinding = () => {
const viewModel = useViewModel(rive, { name: 'Rewards' });
// Get the default instance of the view model
const viewModelInstance = useViewModelInstance(viewModel);
const viewModelInstance = useViewModelInstance(viewModel, { rive });
console.log('ViewModelInstance:', viewModelInstance);
const { value: priceValue, setValue: setPriceValue } =