1
0
mirror of https://github.com/tooot-app/app synced 2025-02-07 05:45:23 +01:00

Fix font size setting

This commit is contained in:
xmflsct 2023-01-10 00:28:39 +01:00
parent 89e2b46792
commit d68ec113c6
2 changed files with 2 additions and 2 deletions

View File

@ -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']) => {

View File

@ -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 {