HomePhabricator
Diffusion Comm 382baa4e984b

[native] Allow MediaGallery items to mount pre-selected

Description

[native] Allow MediaGallery items to mount pre-selected

Summary:
For the approach described in https://linear.app/comm/issue/ENG-2411#comment-c4d6a4a4 to work, items can appear in MediaGalleryKeyboard preselected.
I need that MediaGalleryMedia component can be mounted with the pre-selected state already.

I basically copied code that animates the green checkmark from componentDidUpdate to componentDidMount.

Test Plan: Ensured that items that have isQueued = true when mounted have the green checkmark displayed and animated.

Reviewers: ashoat, przemek, inka, ginsu

Reviewed By: ashoat

Subscribers: tomek, atul

Differential Revision: https://phab.comm.dev/D6494

Details

Provenance
bartekAuthored on Feb 1 2023, 7:49 AM
Reviewer
ashoat
Differential Revision
D6494: [native] Allow MediaGallery items to mount pre-selected
Parents
rCOMMeb9aa10454da: [lib][native] Sanitize media upload filenames
Branches
Unknown
Tags
Unknown