Skip to content

Commit cf680f2

Browse files
committed
fix(android): don't pass autoBind=true when artboard has no default ViewModel
1 parent abdb71e commit cf680f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/rive/RiveReactNativeView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class RiveReactNativeView(context: ThemedReactContext) : FrameLayout(context) {
105105
if (reload) {
106106
val hasDataBinding = when (config.bindData) {
107107
is BindData.None -> false
108-
is BindData.Auto -> config.riveFile.viewModelCount > 0
108+
is BindData.Auto -> false
109109
is BindData.Instance, is BindData.ByName -> true
110110
}
111111
riveAnimationView?.setRiveFile(

0 commit comments

Comments
 (0)