react native andorid使用react-native-scrollable-tab-view控件报错

厍建义
2023-12-01

1、错误1

Android: Invariant Violation requireNativeComponent: "RNCViewPager" was ton found in the UIManager 

参考文章:https://github.com/ptomasroos/react-native-scrollable-tab-view/issues/1050

解决办法:

当RN版本大于0.60.0时

yarn add @react-native-community/viewpager

 

 类似资料: