Check out example codes for "btn keeps pushing down on window resize". It will help you in understanding the concepts better.

Code Example 1

.container {
    white-space: nowrap;
}

Learn ReactJs, React Native from akashmittal.com