Skip to content

Commit 0ed983b

Browse files
committed
Show secure storages in mmkv data editor
1 parent 920f201 commit 0ed983b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/screens/DeveloperOptions/MMKVDataList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Search from '@components/Search'
77
import { SettGroup, SettOption, SettText, SettWrapper } from '@components/Settings'
88
import { useIsFocused } from '@react-navigation/native'
99
import { Colors } from '@utils/colors'
10-
import { ls, type StorageKeys } from '@utils/storage'
10+
import { ls, secureLs, type StorageKeys } from '@utils/storage'
1111
import type { NavProp } from '@utils/types'
1212
import { screenDelay } from '@utils/utils'
1313
import React, { useEffect } from 'react'
@@ -21,7 +21,7 @@ export default function MMKVDataList({ navigation }: NavProp) {
2121
const [searchResults, setSearchResults] = React.useState<string[]>([])
2222

2323
useEffect(() => {
24-
if (state) screenDelay(() => setInitStorage(ls.getAllKeys()))
24+
if (state) screenDelay(() => setInitStorage([...ls.getAllKeys(), ...secureLs.getAllKeys()]))
2525
// setInitStorage([])
2626
}, [state])
2727

0 commit comments

Comments
 (0)