Skip to content

Commit

Permalink
fix(ios): missing configuration if textFilters used (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Nov 2, 2023
1 parent 288a98f commit a16e0ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/ios/LottieReactNative/ContainerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@ class ContainerView: RCTView {
filters[key] = value
}

let nextAnimationView = LottieAnimationView()
let nextAnimationView = LottieAnimationView(
animation: animationView?.animation,
configuration: lottieConfiguration
)
nextAnimationView.textProvider = DictionaryTextProvider(filters)
nextAnimationView.animation = animationView?.animation
replaceAnimationView(next: nextAnimationView)
}
}
Expand Down

0 comments on commit a16e0ee

Please sign in to comment.