-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
viewpager android has been removed from react native #180
Comments
I fixed it by import { PanResponder, Platform, ScrollView, StyleSheet, View } from 'react-native' |
Kindly update this library, I also face this issue |
Please tell me. How can I update it in my code? |
@harshit-prog use this module react-native-best-viewpager |
Thanks @abbasmoosavi |
@harshit-prog You 're wellcome |
I have fixed this issue. Use this package https://www.npmjs.com/package/@shankarmorwal/rn-viewpager
|
I have the solution. for this: import { View, /* ViewPagerAndroid, */ StyleSheet, I18nManager } from 'react-native'; You are welcome :) |
@Gricardov Not a good practice -- that hard-fix isn't going to be recorded in VCS history. Better to change the module altogether. |
Hi @abbasmoosavi After changing -- I get below error - What is the mistake I am doing? |
@akash89bis I fixed this issue and made a copy of this package. Use npm i @shankarmorwal/rn-viewpager There are some deprecated code is used, i plan to update that as well. For now this will work with warnings. |
Hi, you can download the fixed version of rn-viewpager using this package, it also fixed: Invariant Violation: requireNativeComponent: "RNCViewPager" was not found in the UIManager. make sure you guys read installation instruction in that repository. |
@handipriyono I'm facing this issue with version ^1.5.0 |
If you installed rn-viewpager from zbtang before, make sure you uninstall previous React native viewpager from zbtang ( step 1 and 2 ) , if not, goto step 3.
|
@handipriyono I'm using |
the problem is in your code, Component. not in that viewpager package. |
you can also try npm i @shankarmorwal/rn-viewpager |
@handipriyono yes, thanks for your reply, this is my code: `import React from 'react' export default class NewsletterItemGrid extends React.PureComponent {
}` |
@ngocht143 , in your code, that should be invoked, |
thank @handipriyono, it's ok for me now :D |
Install the new package with below npm command
and replace the line from It should work. More details |
No description provided.
The text was updated successfully, but these errors were encountered: