Need help with maintaining background color inside the box for 0.5 seconds and then making it disappear, similar to YouTube comment alarm functionality.
Initial rendering shows background color https://i.sstatic.net/uQ1nj.png
After 0.5 seconds, the background color disappears as shown here https://i.sstatic.net/muk7V.png
This is the current code snippet:
const Container = styled.View`
border-bottom-color: lightblue;
`;
const CommentContainer = styled.View`
`;
const SecondCommentCon = styled.View`
`;
const UnserName = styled.Text`
`;
const Label = styled.Text`
`;
const TodoList = ({}) => {
return (
<Container>
<CommentContainer>
<SecondCommentCon>
<UnserName>{yes?.[0]?.User?.nickname}</UnserName>
<Label>{yes?.[0]?.content}</Label>
</SecondCommentCon>
</CommentContainer>
</Container>
)
Looking to add code for achieving the desired effect, any suggestions?