When working with react-native, I aim to utilize the 'contain' feature for vertical images and the 'stretch' feature for horizontal images. What would be the best way to determine the orientation of an image as either horizontal or vertical?
<Image resizeMode={orientation === 'horizontal' ? 'contain' : 'stretch'} />