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

Get height of smaller view #13

Closed
danvass opened this issue Mar 27, 2016 · 7 comments
Closed

Get height of smaller view #13

danvass opened this issue Mar 27, 2016 · 7 comments

Comments

@danvass
Copy link
Contributor

danvass commented Mar 27, 2016

@Andr3wHur5t Is it possible to get the height of the smaller view that is created once the keyboard is displayed?

@Andr3wHur5t
Copy link
Owner

There should only be one view created by this component.

If you provide an example I may be able to provide some insight though.

@danvass
Copy link
Contributor Author

danvass commented Mar 27, 2016

@Andr3wHur5t Sorry I described it poorly, I am trying to get the height of the screen minus the height of the keyboard.

@danvass
Copy link
Contributor Author

danvass commented Mar 27, 2016

@Andr3wHur5t In addition toggle state seems to only return true. Fixed this and sent pull request #14 .

@Andr3wHur5t
Copy link
Owner

You should be able to sample the keyboardSpacer when the on change event is called while simultaneously sampling the superviews size using the Dimensions class in react native.

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.

@Andr3wHur5t
Copy link
Owner

Just published your PR to NPM, marking this as closed.

@danvass
Copy link
Contributor Author

danvass commented Mar 27, 2016

@Andr3wHur5t Thanks, I just decided to add another parameter to the toggleState function instead and sent through a PR. Thanks for the lib!

@Andr3wHur5t
Copy link
Owner

Thanks for the PR, glad people are using it :)

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