小编Chi*_*ahu的帖子

在React Native Android中缺少插值类型

这是我LayoutAnimation.configureNext(CustomLayoutAnimation);

var CustomLayoutAnimation = {
  duration: 10,
  create: {
    type: LayoutAnimation.Types.linear,
    property: LayoutAnimation.Properties.opacity
  },
  update: {
    type: LayoutAnimation.Types.curveEaseInEaseOut
  }
};
Run Code Online (Sandbox Code Playgroud)

在我的构造函数中

constructor(props: Object) {
    super(props);
    if (Platform.OS === "android") {
      UIManager.setLayoutAnimationEnabledExperimental &&
        UIManager.setLayoutAnimationEnabledExperimental(true);
    }
Run Code Online (Sandbox Code Playgroud)

但是ios在android中工作正常 在此处输入图片说明

react-native react-native-android

3
推荐指数
1
解决办法
643
查看次数

标签 统计

react-native ×1

react-native-android ×1