InvariantViolation : requireNativeComponent RNCViewpager was not found in the UI manager

1.cd ios 2.sudo gem install cocoapods 3.Pod install
@DrobyshevAlex you cannot as this library is not supported by Expo. You would have to eject your project.
The interesting thing is that Expo people recommend using the react-native-viewpager instead of one of their deprecated interface. It is literally the first-line link on the ViewPagerAndroid page.
I am on RN 61.5 with "@react-native-community/viewpager": "^3.1.0" and got crashes on iOS (not Android) with the said error.
What helped was manually linking the dependancy for iOS:
put
pod 'react-native-viewpager', :path => '../node_modules/@react-native-community/viewpager'
in your Podfile and run cd ios && pod install
I had the same issue using react-native 0.61.4 and "@react-native-community/viewpager": "^3.3.0" on android. It was resolved after doing react-native link @react-native-community/viewpager. Why do i have to link it when react native uses auto linking ?
i have used library react-native-scrollable-tab-view version 1.0.0, it has dependency @react-native-community/viewpager then error ocurce. But when i downgrade to version 0.10.0 this error is gone.
if you're using expo and you have this issue make sure you're on sdk-37 and see this docs page for installation instructions https://docs.expo.io/versions/latest/sdk/view-pager/
@yzalvov - we only release sdks once per quarter, so all you need is for someone to make a change in one of the react-native-community repos one day after that release and then there is nothing we can do until the next release. so that is why you would have seen different recommendations in the docs. w
I checked and autolinking for 0.62 here: https://github.com/troZee/viewPagerExample/tree/autolinking
And everything works fine.
i had same issue, is it maybe the problem is only for expokit app (eject from manage workflow). Because my apps didnt get any autolinking, include viewpager
Getting the same error Invariant Violation: Invariant Violation: requireNativeComponent : "RNCViewPager" was not found in the UIManager".
I run both the commands
1. ``` For installation npm install @react-native-community/viewpager ``` 2. ``` For linking the library react-native link @react-native-community/viewpager ```System configuration : System: OS: Linux 4.15 Ubuntu 18.04.2 LTS CPU: (6) x64 AMD FX(tm)-6300 Six-Core Processor Memory: 920.17 MB / 3.59 GB
Binaries: Node: 8.16.0 npm: 6.4.1 npmPackages: react: 16.8.3 => 16.8.3 react-native: 0.59.5 => 0.59.5 npmGlobalPackages: react-native-cli: 2.0.1
saved my time :) thanks a million
i had same issue, is it maybe the problem is only for expokit app (eject from manage workflow). Because my apps didnt get any autolinking, include viewpager
It might be related to this issue. https://github.com/expo/expo-cli/issues/1398
To make it work on ios I had to do
react-native link react-native-pager-view
cd ios; pod install; cd ..
React Native version "react-native": "0.63.2",
Pager View version "react-native-pager-view": "^5.1.5",