wrappid / native-mobile

This repository is combined packages of all the Styled Components for react-native hybrid mobile project.
MIT License
13 stars 4 forks source link

enhancement: native image sould work with height or width props only #49

Open Swrnv-qc opened 7 months ago

Swrnv-qc commented 7 months ago

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.

Swrnv-qc commented 6 months ago

Code has been written but due to some logical issues it has not been merged to dev.