-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Description
I want my application to be notified when there is a new photo added to the CameraRoll. I don't see a way to get that done currently, besides polling. iOS provides this ability with ALAssetsLibraryChangedNotification
, but I don't see a single hit for that in the RN codebase, which verifies to me that this is currently not exposed.
I think I can do this after I finish some contract work, assuming that it is indeed the right way....but as I understand ALAssetsLibrary
is deprecated anyway and we ought to be using PHPPhotoLibrary
, so I don't want to implement something using deprecated frameworks and refactoring RN to use PHPPhotoLibrary is a much larger task than just exposing ALAssetsLibraryChangedNotification
.
Thoughts?
(I could also take on refactoring to make RN use PHPPhotoLibrary
, a rather large task)
I assume that it could be maybe another event exposed via DeviceEventEmitter?