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

A way to subscribe height of current modal #49

Closed
ardyfeb opened this issue Jul 31, 2019 · 3 comments
Closed

A way to subscribe height of current modal #49

ardyfeb opened this issue Jul 31, 2019 · 3 comments
Labels
🚀 New feature New feature or request ❔ Question Further information is requested

Comments

@ardyfeb
Copy link

ardyfeb commented Jul 31, 2019

I have read the docs, there no props or method to subscribe current modal height.

Like a https://github.com/osdnk/react-native-reanimated-bottom-sheet/ they have a props called callbackNode to indicate current modal position.

This is very useful. Example, developer can manipulate and animate the content inside modal, like change the position of handle, hide another component, and others.

So, is there a way to handle this or a trick?

@jeremybarbet
Copy link
Owner

Hi!

Have you tried using this:

modalRef.current.measure((x, y, width, height, px, py) =>
  console.log(x, y, width, height, px, py);
);

@jeremybarbet jeremybarbet added 🚀 New feature New feature or request ❔ Question Further information is requested labels Aug 1, 2019
@mjm918
Copy link

mjm918 commented Dec 15, 2019

modalRef.current.measure((x, y, width, height, px, py) =>
console.log(x, y, width, height, px, py);
);

measure is undefined

jeremybarbet added a commit that referenced this issue Mar 19, 2020
@jeremybarbet
Copy link
Owner

Added a props for it and will release in the next rc version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 New feature New feature or request ❔ Question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants