Skip to content

Commit b0f5a24

Browse files
committed
fix build
1 parent 7b7e55c commit b0f5a24

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

packages/expo-media-library/ios/MediaLibraryRecords.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ enum MediaSubtype: String, Enumerable {
3131
case screenshot
3232
case stream
3333
case timelapse
34-
case unknown
3534

3635
func toPHAssetMediaSubtype() -> PHAssetMediaSubtype {
3736
switch self {
@@ -51,8 +50,8 @@ enum MediaSubtype: String, Enumerable {
5150
return .videoStreamed
5251
case .timelapse:
5352
return .videoTimelapse
54-
case .unknown:
55-
return .none
53+
default:
54+
return []
5655
}
5756
}
5857
}
@@ -71,7 +70,7 @@ struct AssetWithOptions: Record {
7170
@Field var album: String?
7271
@Field var sortBy: [String] = []
7372
@Field var mediaType: [MediaType]
74-
@Field var mediaSubtypes: [String] = []
73+
@Field var mediaSubtypes: [MediaSubtype] = []
7574
@Field var createdAfter: Double?
7675
@Field var createdBefore: Double?
7776
}

0 commit comments

Comments
 (0)