Check out example codes for "bootstrap col size dinamically". It will help you in understanding the concepts better.

Code Example 1

<div class="row">
    <div class="col">
      1 of 2
    </div>
    <div class="col">
      2 of 2
    </div>
</div>

Learn ReactJs, React Native from akashmittal.com