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
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 trying to make a
View
that change its own height with the props from the parent.Here's the snack
Transitioning.View
's transition works fine when theView
component height is calculated with state, but doesn't work out well with props.This issue is making me to use derived state from props which changes.
And also deriving states from props is a anti-pattern.
Why it has to be derived states to make
Transition
work?Beta Was this translation helpful? Give feedback.
All reactions