Skip to content

Commit 5121551

Browse files
authored
fix: fix blurhash view empty on new arch bridgeless (#205)
1 parent c6f12cd commit 5121551

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ios/BlurhashViewManager.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,16 @@ final class BlurhashViewWrapper: UIView, BlurhashViewDelegate {
8484
fatalError("init(coder:) has not been implemented")
8585
}
8686

87+
// Called only on the old arch:
8788
override func reactSetFrame(_ frame: CGRect) {
8889
blurhashView.frame = frame
8990
}
9091

92+
override func layoutSubviews() {
93+
super.layoutSubviews();
94+
blurhashView.frame = self.bounds;
95+
}
96+
9197
override func didSetProps(_: [String]!) {
9298
blurhashView.finalizeUpdates()
9399
}

0 commit comments

Comments
 (0)