animate transitions on web only
This commit is contained in:
parent
e31fcb1a6d
commit
0f67be3627
3 changed files with 13 additions and 7 deletions
10
src/screens/Login/ScreenTransition.tsx
Normal file
10
src/screens/Login/ScreenTransition.tsx
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import React from 'react'
|
||||
import Animated, {FadeInRight, FadeOutLeft} from 'react-native-reanimated'
|
||||
|
||||
export function ScreenTransition({children}: {children: React.ReactNode}) {
|
||||
return (
|
||||
<Animated.View entering={FadeInRight} exiting={FadeOutLeft}>
|
||||
{children}
|
||||
</Animated.View>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue