JS
Size: a a a
JS
JS
AK
AK
Н
АБ
Н
togglePersonalArea = (): void => {
if (this.state.isExtendedPersonalArea) {
this.setState({ isExtendedPersonalArea: false }, this.openPersonalArea)
} else {
this.setState({ isExtendedPersonalArea: true }, this.closePersonalArea)
}
}
openPersonalArea = (): void => {
Animated.timing(this.state.animatedPersonalAreaHeight, {
toValue: 1,
duration: 200,
easing: Easing.linear,
})
.start()
}
closePersonalArea = (): void => {
console.log('Нажато Close')
Animated.timing(this.state.animatedPersonalAreaHeight, {
toValue: 0,
duration: 200,
easing: Easing.linear,
})
.start()
}
Н
AG
this.state.animatedPersonalAreaHeight
- your problem is right here.Д
Д
AG
B
AK
AK
KS
JM
AK