Closed EM-Sabeel closed 2 years ago
Couldn't find version numbers for the following packages in the issue:
react-native
expo
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
react-native-pager-view
(found: 6.0.0-rc.0
, latest: 5.4.8
)Can you verify that the issue still exists after upgrading to the latest versions of these packages?
I need Lazy Pager View and is available on this (6.0.0-rc.0) Version only.
@satya164 any updates
I am also facing the same issue.
I got the solution to this problem here #654
@samadritsarkar2 That solution is not working for this issue
Currently, you using this method.
import ViewPager from 'react-native-pager-view'; const AnimatedViewPager = Animated.createAnimatedComponent(ViewPager);
But, With the latest version of PageView, You should import like this
import {PagerView} from 'react-native-pager-view'; const AnimatedViewPager = Animated.createAnimatedComponent(PagerView);
@samadritsarkar2 this is the solution
That solution worked for me.
const renderScene = SceneMap({ first: AddRoom, second: AddImages, third: AddDetails, });
const [routes] = useState([ {key: 'first', title: 'Basic Room Info'}, {key: 'second', title: 'Add Images'}, {key: 'third', title: 'Final Details'}, ]);
the key fields should be same.
What I did was forking the react-native-pager-view and changing the index.tsx in the next branch to export default PagerView like the previous versions and install the library using the github repo.
RC of pager-view 6.0.0
is not yet supported. Closing this
Current behavior
When i upgraded pager view to
"react-native-pager-view": "^6.0.0-rc.0"
, I'm getting below error.Currently, you using this method.
But, With the latest version of PageView, You should import like this
Expected behavior
The TabView should work with the latest pageview, can you release a beta version for this to work.
Reproduction
https://snack.expo.dev/@sabeelkm/tabview
Platform
Environment