mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Merge branch 'main' into release
This commit is contained in:
@ -11,7 +11,7 @@ import { adaptiveScale } from '@utils/styles/scaling'
|
|||||||
import { useTheme } from '@utils/styles/ThemeManager'
|
import { useTheme } from '@utils/styles/ThemeManager'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import { StyleSheet, View } from 'react-native'
|
import { View } from 'react-native'
|
||||||
import { ScrollView } from 'react-native-gesture-handler'
|
import { ScrollView } from 'react-native-gesture-handler'
|
||||||
|
|
||||||
export const mapFontsizeToName = (size: StorageGlobal['app.font_size']) => {
|
export const mapFontsizeToName = (size: StorageGlobal['app.font_size']) => {
|
||||||
|
@ -43,7 +43,7 @@ export const useGlobalStorage = {
|
|||||||
: never,
|
: never,
|
||||||
number: <T extends keyof StorageGlobal>(key: T) => {
|
number: <T extends keyof StorageGlobal>(key: T) => {
|
||||||
if (Platform.OS === 'ios') {
|
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]
|
? [StorageGlobal[T], (valud: StorageGlobal[T]) => void]
|
||||||
: never
|
: never
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user