Skip to content

Commit 9d74ad4

Browse files
authored
fix(artboard): setting the artboard and statemachine (#43)
1 parent fde1c81 commit 9d74ad4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ios/RiveReactNativeView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class RiveReactNativeView: UIView, RiveStateMachineDelegate {
5959
if reload {
6060
cleanup()
6161
let model = RiveModel(riveFile: config.riveFile)
62-
baseViewModel = RiveViewModel(model, autoPlay: config.autoPlay)
62+
baseViewModel = RiveViewModel(model, stateMachineName: config.stateMachineName, autoPlay: config.autoPlay, artboardName: config.artboardName)
6363
createViewFromViewModel()
6464

6565
if let viewSource = config.viewSource {

0 commit comments

Comments
 (0)