Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix theme not updated

ammarahm-ed6306dc80a058
diff --git a/apps/mobile/share/index.js b/apps/mobile/share/index.js
index 0521a0d37..0feebcd6e 100644
--- a/apps/mobile/share/index.js
+++ b/apps/mobile/share/index.js
@@ -342,6 +342,7 @@ const NotesnookShare = ({ quicknote = false }) => {
};
useEffect(() => {
+ useShareStore.getState().setColors();
onLoad();
}, [note]);
diff --git a/apps/mobile/share/store.js b/apps/mobile/share/store.js
index 32ad4fb6c..1c9d13499 100644
--- a/apps/mobile/share/store.js
+++ b/apps/mobile/share/store.js
@@ -16,6 +16,11 @@ export const useShareStore = create((set, get) => ({
set({ accent: accent });
}
},
+ setColors: () => {
+ set({
+ colors: Appearance.getColorScheme() === 'dark' ? COLOR_SCHEME_DARK : COLOR_SCHEME_LIGHT
+ });
+ },
appendNote: null,
setAppendNote: note => {
MMKV.setItem('shareMenuAppendNote', JSON.stringify(note));