Skip to content

Expose notification handler for new photo #15253

@fxfactorial

Description

@fxfactorial

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions