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

How to start with view hidden? #4

Open
JulianKingman opened this issue May 2, 2017 · 2 comments
Open

How to start with view hidden? #4

JulianKingman opened this issue May 2, 2017 · 2 comments

Comments

@JulianKingman
Copy link

By default, the view sticks to the bottom of the screen. I'd like it to only appear when the keyboard comes up, how do I accomplish this? I thought setting originalHeight={0} might do it, but it seems not.

@JulianKingman
Copy link
Author

I can hide/show it with keyboard listeners, but there's a noticeable lag. I could also animate it's height with a keyboard listener, but that seems like overkill.

@artald
Copy link
Collaborator

artald commented May 2, 2017

originalHeight is an internal property in the native code, it's not exposed to the JS side, and even if it was - it's not related in any way to what you're trying to achieve.

Although I agree that animating the height when the keyboard opens is probably an overkill, (especially since this library tracks the keyboard changes on the native side as well), i'm not sure that currently there's another way to do 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