解决方法: yarn add @react-native-community/viewpager react-native link @react-native-community/viewpager 并重建