title: How can I convert Css to React-native
body: <p>I want to do the exact same thing of what this CSS styling suggests in react native </p>
  
  <p>So how can I convert this CSS to React -native </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.grid {
    display: flex;
    flex-direction: row;
    list-style: none;
    padding-left: 0;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 20px;
    width: 400px;
  }
  
  .grid-item {
    flex-grow: 0;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    height: 100px;
    background: rgba(0,0,0,0.1);
    width: 33%;
  }
  
  .grid-item:nth-last-child(-n+3) {
    border-bottom: none;
  }
  
  .grid-item:nth-child(3n+0) {
    border-right: none;
  }
  
  .list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding-left: 0;
    width: 400px;
  }
  
  .list-item {
    flex-grow: 0;
    border-bottom: 1px solid #000;
    height: 60px;
    background: rgba(0,0,0,0.1);
    flex: 1;
  }
  
  .list-item:last-child {
    border-bottom: none;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul class="grid"&gt;
    &lt;li class="grid-item"&gt;
  
    &lt;/li&gt;
    &lt;li class="grid-item"&gt;
  
    &lt;/li&gt;
    &lt;li class="grid-item"&gt;
  
    &lt;/li&gt;
    &lt;li class="grid-item"&gt;
  
    &lt;/li&gt;
    &lt;li class="grid-item"&gt;
  
    &lt;/li&gt;
    &lt;li class="grid-item"&gt;
  
    &lt;/li&gt;
    &lt;li class="grid-item"&gt;
  
    &lt;/li&gt;
    &lt;li class="grid-item"&gt;
  
    &lt;/li&gt;
    &lt;li class="grid-item"&gt;
  
    &lt;/li&gt;
  &lt;/ul&gt;
  
  &lt;ul class="list"&gt;
    &lt;li class="list-item"&gt;
      
    &lt;/li&gt;
    &lt;li class="list-item"&gt;
      
    &lt;/li&gt;
    &lt;li class="list-item"&gt;
      
    &lt;/li&gt;
    &lt;li class="list-item"&gt;
      
    &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want to make a Modal  which looks like this: </p>
  
  <pre><code>       &lt;Modal&gt;
            &lt;BrandsGrid /&gt;
         &lt;/Modal&gt;
         &lt;Modal&gt;
            &lt;ModelsList /&gt;
         &lt;/Modal&gt;
  </code></pre>
  
  <p>I need to define BrandsGrid and ModelsList and do something exactly similar to that CSS styling in React-native </p>
  
  <p>So example codes will be more helpful for understanding I have referred the docs but couldn't get much help from that </p>