我正在将react-native的LayoutAnimation自定义组件与地图一起使用。在ios动画上可以正常运行,但不能在android上运行。我正在更改组件高度
mysql-error.log
}
您需要通过UIManager设置以下标志。您是否在代码中这样做?
if (Platform.OS === 'android') {
if (UIManager.setLayoutAnimationEnabledExperimental) {
UIManager.setLayoutAnimationEnabledExperimental(true);
}
}
您可以在此处查看文档-> https://reactnative.dev/docs/layoutanimation