update: latest source changes
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
// Copyright 2024-present 650 Industries. All rights reserved.
|
||||
|
||||
import ExpoModulesCore
|
||||
|
||||
internal final class Image: SharedRef<UIImage> {
|
||||
override var nativeRefType: String {
|
||||
"image"
|
||||
}
|
||||
|
||||
var isAnimated: Bool {
|
||||
return !(ref.images?.isEmpty ?? true)
|
||||
}
|
||||
|
||||
override func getAdditionalMemoryPressure() -> Int {
|
||||
guard let cgImage = ref.cgImage else {
|
||||
return 0
|
||||
}
|
||||
return cgImage.bytesPerRow * cgImage.height
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user