-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add support for React refs on Box
#52
Comments
Box
.Box
Hey! Yeah sure, go for it! I‘d prefer an update to latest React using the forwardRef API though. If you need any help, just ping me! |
The forwardRef API won't work for ScrollView, because it currently exposes instance methods via ref, ie: Let me know what your thoughts, and if you'd be willing to accept the |
Yeah that makes sense! innerRef oder elementRef are common names I guess. :) |
This is a great library, however it is missing a way to attach a ref to Box's underlying DOM node. This is useful for integrations with other third party libraries.
Specifically we want to be able to integrate with
react-beautiful-dnd
, which requires an exposed ref on the draggable items.Would you be open to a PR that introduces an
elementRef
prop to theBox
component?Example usage:
The text was updated successfully, but these errors were encountered: