I want to use the 'contain' feature when the vertical image comes and the 'stretch' feature when the horizontal image comes in the react-native. How do I check the horizontal or vertical status? For example:
<Image resizeMode={status==horizantal?'contain':'stretch'} />