如果您面临动画警告:未指定“useNativeDriver”

问题描述 投票:0回答:0

这是必需选项,必须明确设置为

true
false
DatePicker 然后按照以下步骤操作:

class DatePicker extends Component
         this.state.animatedHeight,
         {
           toValue: height,
          duration: duration
          duration: duration,
          useNativeDriver: false //This we have to add in inside library so you will not get this warning and picker will work smoothly
         }
       ).start();
react-native datepicker
© www.soinside.com 2019 - 2024. All rights reserved.