You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using react-native-reanimated": "^3.3.0.
I have next structure in my project and my header includes some context which is come from API, that means after getting info I have to put some text in header. I don't have static height for it and it dynamically update his height.
For getting the latest height I can use onLayout with first render and I successfully get it, like not 0. But when I add next code, where I put descriptionHeight to my View inside the
seems that descriptionHeight changes my height to 0 and I for some reasons viewHeight inside descriptionHeight doesn't apply output value.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am using
react-native-reanimated": "^3.3.0
.I have next structure in my project and my header includes some context which is come from API, that means after getting info I have to put some text in header. I don't have static height for it and it dynamically update his height.
For getting the latest height I can use onLayout with first render and I successfully get it, like not 0. But when I add next code, where I put descriptionHeight to my View inside the
seems that descriptionHeight changes my height to 0 and I for some reasons viewHeight inside descriptionHeight doesn't apply output value.Beta Was this translation helpful? Give feedback.
All reactions