1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00
Files
tooot/src/utils/styles/layoutAnimation.ts
xmflsct 44f83e44b9 Fixed #539
Respect system's reduced motion enabled setting
2022-12-09 00:48:34 +01:00

11 lines
299 B
TypeScript

import { AccessibilityInfo, LayoutAnimation } from 'react-native'
const layoutAnimation = async () => {
const disable = await AccessibilityInfo.isReduceMotionEnabled()
if (disable) return
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut)
}
export default layoutAnimation