The Power slider should be visible when easing or nestedEasing are set to poly. nestedEasing is only visible when easing is set to either in, out or inOut. So when we set easing to in, nestedEasing to poly and then set easing to brezier the Power slider will stay.
To fix that we added reset of nestedEasing value if easing is changed to something other that in, out or inOut
This PR is related to #6126 issue.
The Power slider should be visible when
easing
ornestedEasing
are set topoly
.nestedEasing
is only visible wheneasing
is set to eitherin
,out
orinOut
. So when we seteasing
toin
,nestedEasing
topoly
and then seteasing
tobrezier
the Power slider will stay.To fix that we added reset of
nestedEasing
value ifeasing
is changed to something other thatin
,out
orinOut
Before:
https://github.com/software-mansion/react-native-reanimated/assets/59940332/326876b6-f0b9-4edc-b793-2b4c8fd0da9f
After:
https://github.com/software-mansion/react-native-reanimated/assets/59940332/579600a1-7db8-48a9-bf68-bfc3a5157826