Skip to content

Commit

Permalink
chore: remove introduced error
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRogue76 committed Jan 6, 2024
1 parent b2330d7 commit 7ddcba0
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@ class LottieAnimationViewPropertyManager(view: LottieAnimationView) {
view.setFontAssetDelegate(
object : FontAssetDelegate() {
override fun fetchFont(fontFamily: String): Typeface {
val typeface =
ReactFontManager.getInstance()
.getTypeface(fontFamily, UNSET, UNSET, view.context.assets)
return typeface ?: Typeface.defaultFromStyle(400)
return ReactFontManager.getInstance()
.getTypeface(fontFamily, UNSET, UNSET, view.context.assets)
}

override fun fetchFont(
Expand Down

0 comments on commit 7ddcba0

Please sign in to comment.