Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation working problem with Hooks #341

Open
ahtisham09 opened this issue Mar 4, 2021 · 2 comments
Open

Animation working problem with Hooks #341

ahtisham09 opened this issue Mar 4, 2021 · 2 comments

Comments

@ahtisham09
Copy link

ahtisham09 commented Mar 4, 2021

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>)}

@mifi
Copy link
Contributor

mifi commented Mar 7, 2021

im guessing profile changes causing it to re-mount

@ahtisham09
Copy link
Author

@mifi this hooks work only when profile change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants