about summary refs log tree commit diff
path: root/src/state/models/user-local-photos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/models/user-local-photos.ts')
-rw-r--r--src/state/models/user-local-photos.ts24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/state/models/user-local-photos.ts b/src/state/models/user-local-photos.ts
deleted file mode 100644
index b14e8a6a4..000000000
--- a/src/state/models/user-local-photos.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-import {PhotoIdentifier} from './../../../node_modules/@react-native-camera-roll/camera-roll/src/CameraRoll'
-import {makeAutoObservable, runInAction} from 'mobx'
-import {CameraRoll} from '@react-native-camera-roll/camera-roll'
-import {RootStoreModel} from './root-store'
-
-export type {PhotoIdentifier} from './../../../node_modules/@react-native-camera-roll/camera-roll/src/CameraRoll'
-
-export class UserLocalPhotosModel {
-  // state
-  photos: PhotoIdentifier[] = []
-
-  constructor(public rootStore: RootStoreModel) {
-    makeAutoObservable(this, {
-      rootStore: false,
-    })
-  }
-
-  async setup() {
-    const r = await CameraRoll.getPhotos({first: 20})
-    runInAction(() => {
-      this.photos = r.edges
-    })
-  }
-}