曾经recommended to use componentWillReact()
to trigger layout animations是为了响应可观察值的变化,例如:
arn:
Fn::Getatt: [ '${self:custom.TABLE_NAME}',StreamArn ]
但是,componentWillReact() {
LayoutAnimation.configureNext(LayoutAnimation.Presets.spring);
}
已从mobx-react @ 6中删除。
推荐的替代品是什么?我的 observable 类应该对它的 observer 一无所知,因此我正在寻找类似的事件驱动解决方案。
谢谢!