title: How to fit any size image in fixed size view in react-native
body: <p>I am trying to fit my image with fix size of view, border radius and borderWidth in react-native</p>
  
  <pre><code> &lt;CachedImage
  resizeMode="contain"
  source={{
      uri:
          "https://s3-us-west-2.amazonaws.com/bracketopia-storage/products/logo_fresh.jpg"
  }}
  style={{
      height: 100,
      width: 180,
      borderRadius: 10,
      overflow: "hidden",
      alignItems: "center",
      borderWidth: 1,
      borderColor: AppColors.grey
  }}
  /&gt;;
  </code></pre>
  
  <p>but I am not able to achieve it I am getting somthing like :</p>
  
  <p><a href="https://i.stack.imgur.com/sPruf.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sPruf.jpg" alt="enter image description here"></a></p>