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

only use a fixed/calculated height during animation #272

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

DaKaZ
Copy link
Contributor

@DaKaZ DaKaZ commented Jan 7, 2019

I am not sure if its my content, an issue of timing of when the measurement is taken, or just a bug in this or core react-native, but the measured size for my content is ALWAYS wrong. The measured height is between 10 and 28 pixels too large. I have fought with this for a while but I found that if I REMOVE the explicit height (all my content is in flex boxes and does include some SVG component) it works perfectly. Seeing that height is used for the animating process, I made this small PR to only apply height during the animating. It should not (as far as I can tell) change the components default behavior so I am hoping this will be accepted.

@iRoachie
Copy link
Collaborator

Do you have an example of this not working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants