mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
fork

Configure Feed

Select the types of activity you want to include in your feed.

at thread-bug 31 lines 683 B view raw
1import React from 'react' 2import {StyleProp, ViewStyle} from 'react-native' 3import Animated, { 4 FadeIn, 5 FadeOut, 6 SlideInLeft, 7 SlideInRight, 8} from 'react-native-reanimated' 9 10import {isWeb} from '#/platform/detection' 11 12export function ScreenTransition({ 13 direction, 14 style, 15 children, 16}: { 17 direction: 'Backward' | 'Forward' 18 style?: StyleProp<ViewStyle> 19 children: React.ReactNode 20}) { 21 const entering = direction === 'Forward' ? SlideInRight : SlideInLeft 22 23 return ( 24 <Animated.View 25 entering={isWeb ? FadeIn.duration(90) : entering} 26 exiting={FadeOut.duration(90)} // Totally vibes based 27 style={style}> 28 {children} 29 </Animated.View> 30 ) 31}