HomePhabricator
Diffusion Comm 736e75a1fd24

[lib/native] introduce useUpdateSystemTheme

Description

[lib/native] introduce useUpdateSystemTheme

Summary:
Now that we want to bring updateThemeInfo redux actions/state into web as well there are several things we should lift from native into lib so that we can share them across both platforms. This diff lifts the common logic in ThemeHandler into a hook that can be consumed by each respective platform's ThemeHandler

Part of https://linear.app/comm/issue/ENG-4956/lift-any-necessary-shared-types-selectors-functions-for-storing-the

Depends on D9550

Test Plan: flow and confirmed that the logic in updateSystemTheme still works as expected

Reviewers: atul, inka, rohan

Reviewed By: atul

Subscribers: ashoat, tomek, wyilio

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

Details

Provenance
ginsuAuthored on Oct 19 2023, 8:11 PM
Reviewer
atul
Differential Revision
D9551: [lib/native] introduce useUpdateSystemTheme
Parents
rCOMM476f6b9930f3: [lib/native/web] lift globalThemeInfo redux state into lib
Branches
Unknown
Tags
Unknown