Check out example codes for "css grid no stretch". It will help you in understanding the concepts better.

Code Example 1

.foo {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
}

Learn ReactJs, React Native from akashmittal.com