HomePhabricator
Diffusion Comm 468795c28ffb

[native] Add "Clear media cache" button to dev menu

Description

[native] Add "Clear media cache" button to dev menu

Summary:
I use this locally to clear the media cache when I'm testing encrypted multimedia.
This is related to ENG-2745 - I just found another use case for the custom menu buttons.

This should be run as a side effect in global scope. Subsequent calls override the previous one.

Docs on this feature: https://docs.expo.dev/develop/development-builds/development-workflows/#extending-the-dev-menu

Test Plan:
Run the app and open dev menu (shake / press the m key while in metro console). The button should appear.

Simulator Screen Shot - iPhone 14 Pro - 2023-05-24 at 20.22.34.png (2×1 px, 279 KB)

When clicked, the button should clear the media cache and show a toast.

Reviewers: ashoat, atul, kamil, marcin

Reviewed By: ashoat

Subscribers: tomek

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

Details

Provenance
bartekAuthored on May 24 2023, 11:19 AM
Reviewer
ashoat
Differential Revision
D7966: [native] Add "Clear media cache" button to dev menu
Parents
rCOMM9d17a38967b5: [native] Remove HelloWorld expo module
Branches
Unknown
Tags
Unknown