Files
App/patches/react-native-blurhash+2.1.1.patch
riteshshukla04 1c32d41624 RN upgrade
2025-08-13 01:42:40 +05:30

30 lines
1.6 KiB
Diff

diff --git a/node_modules/react-native-blurhash/android/src/main/java/com/mrousavy/blurhash/BlurhashViewManager.kt b/node_modules/react-native-blurhash/android/src/main/java/com/mrousavy/blurhash/BlurhashViewManager.kt
index 9224e9a..193540b 100644
--- a/node_modules/react-native-blurhash/android/src/main/java/com/mrousavy/blurhash/BlurhashViewManager.kt
+++ b/node_modules/react-native-blurhash/android/src/main/java/com/mrousavy/blurhash/BlurhashViewManager.kt
@@ -108,7 +108,7 @@ class BlurhashViewManager :
return image
}
- override fun getExportedCustomDirectEventTypeConstants(): MutableMap<String, Any>? {
+ override fun getExportedCustomDirectEventTypeConstants(): Map<String, Any>? {
return MapBuilder.builder<String, Any>()
.put(LoadErrorEvent.EVENT_NAME, MapBuilder.of("registrationName", "onLoadError"))
.put(LoadStartEvent.EVENT_NAME, MapBuilder.of("registrationName", "onLoadStart"))
diff --git a/node_modules/react-native-blurhash/ios/BlurhashViewManager.swift b/node_modules/react-native-blurhash/ios/BlurhashViewManager.swift
index a22972f..8415cdc 100644
--- a/node_modules/react-native-blurhash/ios/BlurhashViewManager.swift
+++ b/node_modules/react-native-blurhash/ios/BlurhashViewManager.swift
@@ -88,6 +88,11 @@ final class BlurhashViewWrapper: UIView, BlurhashViewDelegate {
blurhashView.frame = frame
}
+ override func layoutSubviews() {
+ super.layoutSubviews()
+ blurhashView.frame = bounds
+ }
+
override func didSetProps(_: [String]!) {
blurhashView.finalizeUpdates()
}