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? { + override fun getExportedCustomDirectEventTypeConstants(): Map? { return MapBuilder.builder() .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() }