resize image react native 1

resize image react native

 flex: 1,
    width: 50,
    height: 50,
    resizeMode: 'contain' 

Here is what the above code is Doing:
1. We’re creating a new component called ImageDetail.
2. We’re passing in a prop called imageSource.
3. We’re passing in a prop called title.
4. We’re passing in a prop called score.
5. We’re using the props to display the image, title, and score.

Similar Posts