feat(iOS): Add subTypes field (#495)

Allow to know PHAssetMediaSubtype on iOS.
So for example if a node is a LivePhoto or a Panorama.
This commit is contained in:
Théo Poizat
2023-05-31 09:33:11 +02:00
committed by GitHub
parent 08ba91db78
commit 1f6499be0a
7 changed files with 59 additions and 0 deletions
+3
View File
@@ -3,6 +3,8 @@
// and we want to stay compatible with those
import {TurboModuleRegistry, TurboModule} from 'react-native';
import type {SubTypes} from './CameraRoll';
type Album = {
title: string;
count: number;
@@ -11,6 +13,7 @@ type Album = {
type PhotoIdentifier = {
node: {
type: string;
subTypes: SubTypes;
group_name: string;
image: {
filename: string | null;