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:
parent
89e2b46792
commit
d68ec113c6
@ -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…
x
Reference in New Issue
Block a user