Open ahtisham09 opened 3 years ago
Hello Everyone i hope you are doing well i am facing problem from couple of days when i open app the animation move more then 3 times i search a lot of things but nothing works around
const [expand, setExpand] = React.useState(false);
React.useEffect(() => { setTimeout(() => { setExpand(!expand); }, 5000); }, [profile]);
`{expand && ( <Animatable.View animation="fadeInUp" useNativeDriver={true} direction="alternate" easing="linear"
<FlatList data={recommendedCourses} renderItem={({item}) => <Courses item={item} {...props} />} /> </Animatable.View>)} `
im guessing profile changes causing it to re-mount
@mifi this hooks work only when profile change
Hello Everyone i hope you are doing well i am facing problem from couple of days when i open app the animation move more then 3 times i search a lot of things but nothing works around
const [expand, setExpand] = React.useState(false);
React.useEffect(() => { setTimeout(() => { setExpand(!expand); }, 5000); }, [profile]);
`{expand && (
<Animatable.View animation="fadeInUp" useNativeDriver={true} direction="alternate" easing="linear"