update: latest source changes
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
import ExpoModulesCore
|
||||
import SDWebImage
|
||||
|
||||
enum ImagePriority: String, Enumerable {
|
||||
case low
|
||||
case normal
|
||||
case high
|
||||
|
||||
/**
|
||||
Maps the priority to `SDWebImageOptions` which is a bitmask thus has only low and high priority options.
|
||||
*/
|
||||
func toSDWebImageOptions() -> SDWebImageOptions? {
|
||||
switch self {
|
||||
case .low:
|
||||
return .lowPriority
|
||||
case .high:
|
||||
return .highPriority
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user