Skip to content

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

Open
@lcundiff

Description

@lcundiff

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions