首页 > 其他分享 >Check the render method of `AnimatedComponent`

Check the render method of `AnimatedComponent`

时间:2022-11-19 09:45:01浏览次数:42  
标签:render Check AnimatedComponent react method native

一开始版本是"react-native": "0.64.1", "react-native-scrollable-tab-view": "^1.0.0"

一进页面就报错Check the render method of `AnimatedComponent`

后来升级rn版本到"react-native": "0.64.4",还是报错,

最后改了百度查询到修改方法

改react-native-scrollable-tab-view 的源码

把index.js中的 const ViewPager = require('@react-native-community/viewpager');

改成:import ViewPager from '@react-native-community/viewpager';

就好了!!!!!!

标签:render,Check,AnimatedComponent,react,method,native
From: https://www.cnblogs.com/Lemon111/p/16905473.html

相关文章