mirror of https://github.com/tooot-app/app
Merge branch 'main' into release
This commit is contained in:
commit
0a795e427d
|
@ -11,7 +11,7 @@ import { adaptiveScale } from '@utils/styles/scaling'
|
|||
import { useTheme } from '@utils/styles/ThemeManager'
|
||||
import React from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { StyleSheet, View } from 'react-native'
|
||||
import { View } from 'react-native'
|
||||
import { ScrollView } from 'react-native-gesture-handler'
|
||||
|
||||
export const mapFontsizeToName = (size: StorageGlobal['app.font_size']) => {
|
||||
|
|
|
@ -43,7 +43,7 @@ export const useGlobalStorage = {
|
|||
: never,
|
||||
number: <T extends keyof StorageGlobal>(key: T) => {
|
||||
if (Platform.OS === 'ios') {
|
||||
return useMMKVString(key, storage.global) as NonNullable<StorageGlobal[T]> extends number
|
||||
return useMMKVNumber(key, storage.global) as NonNullable<StorageGlobal[T]> extends number
|
||||
? [StorageGlobal[T], (valud: StorageGlobal[T]) => void]
|
||||
: never
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue