Skip to content
This repository was archived by the owner on Nov 11, 2020. It is now read-only.

No Support for Width & Height in percentages. #9

Open
Ram0302 opened this issue Sep 18, 2020 · 2 comments
Open

No Support for Width & Height in percentages. #9

Ram0302 opened this issue Sep 18, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Ram0302
Copy link

Ram0302 commented Sep 18, 2020

default proptypes for width & height are set to numbers. But in reality there should be responsive UI across devices. If simply given widths in numbers, my app cannot be scaled across multiple screen sizes. I've Even tried setting up widths in percentages for containerStyles and the shadows of the view are breaking

@Jamyth Jamyth added the enhancement New feature or request label Nov 2, 2020
@Jamyth
Copy link
Owner

Jamyth commented Nov 2, 2020

I will try adding percentage in the next version

@Jamyth Jamyth self-assigned this Nov 2, 2020
@saturn30
Copy link

saturn30 commented Nov 2, 2020

It's a temporary measure, but I used the Dimension module to get the width and height of the screen and multiply it by the percentage.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants