This commit is contained in:
Eric Bailey
2024-09-15 13:05:30 -05:00
parent 19685b1c40
commit 482e72280b
3 changed files with 2 additions and 13 deletions
+1 -2
View File
@@ -3,8 +3,7 @@ import {useFonts as defaultUseFonts} from 'expo-font'
import {Device, device} from '#/storage'
export function getFontScale() {
const fontScale = device.get(['fontScale']) || 1
return fontScale
return device.get(['fontScale']) || 1
}
export function setFontScale(fontScale: Device['fontScale']) {
-10
View File
@@ -1,10 +0,0 @@
import {device} from '#/storage'
export function set(fontScale: number) {
device.set(['fontScale'], fontScale)
}
export function get() {
const fontScale = device.get(['fontScale']) || 1
return fontScale
}
+1 -1
View File
@@ -2,7 +2,7 @@
* Device data that's specific to the device and does not vary based account
*/
export type Device = {
fontScale: number | undefined
fontScale: number
fontFamily: 'system' | 'theme'
lastNuxDialog: string | undefined
}