update default schema
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import {Platform} from 'react-native'
|
import {Platform} from 'react-native'
|
||||||
import {isReducedMotion} from 'react-native-reanimated'
|
|
||||||
import {getLocales} from 'expo-localization'
|
import {getLocales} from 'expo-localization'
|
||||||
|
|
||||||
import {fixLegacyLanguageCode} from '#/locale/helpers'
|
import {fixLegacyLanguageCode} from '#/locale/helpers'
|
||||||
@@ -21,5 +20,3 @@ export const deviceLocales = dedupArray(
|
|||||||
.map?.(locale => fixLegacyLanguageCode(locale.languageCode))
|
.map?.(locale => fixLegacyLanguageCode(locale.languageCode))
|
||||||
.filter(code => typeof code === 'string'),
|
.filter(code => typeof code === 'string'),
|
||||||
) as string[]
|
) as string[]
|
||||||
|
|
||||||
export const prefersReducedMotion = isReducedMotion()
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import {z} from 'zod'
|
import {z} from 'zod'
|
||||||
|
|
||||||
import {deviceLocales, prefersReducedMotion} from '#/platform/detection'
|
import {deviceLocales} from '#/platform/detection'
|
||||||
|
import {PlatformInfo} from '../../../modules/expo-bluesky-swiss-army'
|
||||||
|
|
||||||
const externalEmbedOptions = ['show', 'hide'] as const
|
const externalEmbedOptions = ['show', 'hide'] as const
|
||||||
|
|
||||||
@@ -128,7 +129,7 @@ export const defaults: Schema = {
|
|||||||
lastSelectedHomeFeed: undefined,
|
lastSelectedHomeFeed: undefined,
|
||||||
pdsAddressHistory: [],
|
pdsAddressHistory: [],
|
||||||
disableHaptics: false,
|
disableHaptics: false,
|
||||||
disableAutoplay: prefersReducedMotion,
|
disableAutoplay: PlatformInfo.getIsReducedMotionEnabled(),
|
||||||
kawaii: false,
|
kawaii: false,
|
||||||
hasCheckedForStarterPack: false,
|
hasCheckedForStarterPack: false,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user