mirror of https://github.com/tooot-app/app
11 lines
299 B
TypeScript
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
|