I have a header component in my React Native application that slides out of the screen when the users keyboard opens. This is so that I can create more space. When the animation is complete, I can either unmount the component (using Redux with its parent component) or hide it by applying flex: 0.
Which method is better? or is there no difference?