In React Native, you cannot directly use an image without specifying both its width and height. So whenever <CoreImage> is used the with only height or width props it should work.
Proposed Solution
Calculating Height Based on Width:
If you know the dimensions of the image, you can calculate the height based on the width of the device or a specific container. This method requires you to know the original dimensions of the image.
Description
In React Native, you cannot directly use an image without specifying both its width and height. So whenever
<CoreImage>
is used the with only height or width props it should work.Proposed Solution
Calculating Height Based on Width:
If you know the dimensions of the image, you can calculate the height based on the width of the device or a specific container. This method requires you to know the original dimensions of the image.