-
Notifications
You must be signed in to change notification settings - Fork 220
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
Get height of smaller view #13
Comments
There should only be one view created by this component. If you provide an example I may be able to provide some insight though. |
@Andr3wHur5t Sorry I described it poorly, I am trying to get the height of the screen minus the height of the keyboard. |
@Andr3wHur5t In addition toggle state seems to only return true. Fixed this and sent pull request #14 . |
You should be able to sample the keyboardSpacer when the on change event is called while simultaneously sampling the superviews size using the The delta should be what your looking for, the keyboard spacer size should always be 0 when the keyboard is hidden unless it explicitly set outside of the module. |
Just published your PR to NPM, marking this as closed. |
@Andr3wHur5t Thanks, I just decided to add another parameter to the toggleState function instead and sent through a PR. Thanks for the lib! |
Thanks for the PR, glad people are using it :) |
@Andr3wHur5t Is it possible to get the height of the smaller view that is created once the keyboard is displayed?
The text was updated successfully, but these errors were encountered: