Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x, y, and bound props do not take percentage value #130

Open
lcundiff opened this issue Jul 13, 2022 · 1 comment
Open

x, y, and bound props do not take percentage value #130

lcundiff opened this issue Jul 13, 2022 · 1 comment

Comments

@lcundiff
Copy link

To replicate:
Pass in string such as "50%" into x, y, or bound prop such as minY or x.

Expected behavior:
bound will set value based off 50% of parent width/height depending on if it is x or y.

Observed behavior:
Type Error (for me since I am using typescript)

If there is some way of using draggable objects responsively, please let me know. Currently, I am using the height and width properties of react native, but my draggables aren't based off height and width directly, but the size of their container, which in certain screen sizes, will set bounds too close or too far.

Any help appreciated.

@willryanuk
Copy link

This would be a neat enhancement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants