From dcf1bc8a512794b1cd07fa81ecfa3f730f98a3a1 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto Date: Sat, 30 Jul 2022 12:20:30 -0300 Subject: [PATCH] fix setTheme at share --- app/share.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/share.tsx b/app/share.tsx index 089181483..b5b83db48 100644 --- a/app/share.tsx +++ b/app/share.tsx @@ -141,7 +141,7 @@ class Root extends React.Component<{}, IState> { setTheme = (newTheme = {}) => { // change theme state this.setState( - prevState => newThemeState(prevState, newTheme as IThemePreference), + prevState => newThemeState(prevState.themePreferences, newTheme as IThemePreference), () => { const { themePreferences } = this.state; // subscribe to Appearance changes