Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

fix: 💫 Animations élement prochain cours #229

Merged
merged 1 commit into from
May 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions views/HomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ import Animated, {
useSharedValue,
useAnimatedStyle,
useAnimatedScrollHandler,
interpolate
interpolate,
FadeOutDown
} from 'react-native-reanimated';

import NativeText from '../components/NativeText';
Expand Down Expand Up @@ -405,14 +406,15 @@ const HomeScreen = ({ navigation }) => {
onScroll={scrollHandler}
scrollEventThrottle={16}
>
{nextCourse && (
{nextCourse && !loading && (
<Animated.View
style={{
margin: 16,
marginTop: Platform.OS == 'ios' ? 8 : 18,
marginBottom: 0,
}}
entering={FadeInDown.springify()}
exiting={FadeOut}
exiting={FadeOutUp.springify()}
layout={LinearTransition}
>
<PressableScale
Expand Down Expand Up @@ -1629,7 +1631,7 @@ const styles = StyleSheet.create({
},

tabsTabsContainer: {
marginTop: -6,
marginTop: 8,
marginHorizontal: 16,
gap: 9,
marginBottom: 16,
Expand Down
Loading