mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
add react-native-mmkv-storage
This commit is contained in:
@@ -9,7 +9,7 @@ import {
|
||||
Platform,
|
||||
ToastAndroid,
|
||||
} from 'react-native';
|
||||
import FastStorage from 'react-native-fast-storage';
|
||||
import MMKV from 'react-native-mmkv-storage';
|
||||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
||||
import {db, DDS} from '../../../App';
|
||||
import {
|
||||
@@ -283,10 +283,10 @@ export const ActionSheetComponent = ({
|
||||
icon: 'theme-light-dark',
|
||||
func: () => {
|
||||
if (!colors.night) {
|
||||
FastStorage.setString('theme', JSON.stringify({night: true}));
|
||||
MMKV.setString('theme', JSON.stringify({night: true}));
|
||||
changeColorScheme(COLOR_SCHEME_DARK);
|
||||
} else {
|
||||
FastStorage.setString('theme', JSON.stringify({night: false}));
|
||||
MMKV.setString('theme', JSON.stringify({night: false}));
|
||||
changeColorScheme(COLOR_SCHEME_LIGHT);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user