HomePhabricator
Diffusion Comm 4d90492abaeb

[lib/native] introduce useUpdateThemePreference

Description

[lib/native] introduce useUpdateThemePreference

Summary:
We are going to want this exact logic in our web AppearanceChangeModal. Rather than copy + paste this logic, this diff preemptively factors out this logic into a seperate hook that can be conusmed by each platform

Part of https://linear.app/comm/issue/ENG-4958/update-theme-based-on-the-active-theme-redux-state

Depends on D9552

Test Plan: flow + confirmed that there were no regressions with updating the app theme

Reviewers: atul, inka, rohan

Reviewed By: atul

Subscribers: ashoat, tomek, wyilio

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

Details

Provenance
ginsuAuthored on Oct 19 2023, 9:19 PM
Reviewer
atul
Differential Revision
D9553: [lib/native] introduce useUpdateThemePreference
Parents
rCOMMabf2583fc896: [web] introduce redux persist migration for globalThemeInfo
Branches
Unknown
Tags
Unknown