Skip to content

Commit 9eee0f8

Browse files
authored
fix: expo media library must sort by time (#1528)
1 parent 1e1bfdd commit 9eee0f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package/expo-package/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ registerNativeHandlers({
4949
after,
5050
first,
5151
mediaType: [MediaLibrary.MediaType.photo, MediaLibrary.MediaType.video],
52+
sortBy: [MediaLibrary.SortBy.modificationTime],
5253
});
5354
const assets = results.assets.map((asset) => ({
5455
duration: asset.duration,

0 commit comments

Comments
 (0)