-
Notifications
You must be signed in to change notification settings - Fork 419
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
android: Scrapped or attached views may not be recycled #859
Comments
+ 1 |
@MrRefactor @yilinjuang @WoLewicki @okwasniewski @szymonrybczak @szydlovsky any update on this issue? |
Hi @rifad4u Just a quick reminder to please avoid pinging other contributors unnecessarily. Let's ensure we're not disturbing others unless it's critical to the discussion. Thanks for your understanding and cooperation! PRs and other investigations are welcome 🙏 Best regards, |
@Kamill90, please check this issue in your free time 🙏 |
The same problem |
Any update on this issue? Im facing this issue on react native 0.75.4 with "react-native-pager-view": "^6.4.1", |
|
Looking into this |
enabled new arch. same error |
Thank you @MrRefactor |
Similar issue: #891 (comment) |
When new arch type is disabled error is resolved. |
Any update? I just saw this package and I installed it in my RN app that uses version 0.76, |
Getting the same issue in RN 0.73.9, do we have any update? |
As I messaged previously, looking into that issue. Feel free to contribute and open PR. |
I got this because I was following the example with reanimated library, I don't have this error after I get rid of reanimated from react-native-pager-view. |
Getting the same issue in RN 0.76.1 when newArchEnabled=true, do we have any update? |
Environment
"@react-navigation/material-top-tabs": "^6.6.14",
"@react-navigation/native": "^6.1.18",
"@react-navigation/native-stack": "^6.11.0",
"react": "18.3.1",
"react-native": "0.75.2",
"react-native-pager-view": "^6.3.4",
"react-native-safe-area-context": "^4.10.9",
"react-native-screens": "^3.34.0",
"react-native-tab-view": "^3.5.2"
Description
I have a tab navigator in a post login stack, one of the tabs visibility is based on the value of a state variable. When i do logout, first i'm setting the value of the state variable to false, then switching the stack to pre login stack. at this time app is getting crashed.
Getting logs in Android studio like below
java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true androidx.viewpager2.widget.ViewPager2$RecyclerViewImpl{7d03f4b VFED..... .......D 0,0-1080,1736 #2}, adapter:com.reactnativepagerview.ViewPagerAdapter@5f5fd28, layout:androidx.viewpager2.widget.ViewPager2$LinearLayoutManagerImpl@1cf2a41, context:com.facebook.react.uimanager.ThemedReactContext@c1e63c
Reproducible Demo
https://github.com/rifad4u/pagerviewcrash.git
The text was updated successfully, but these errors were encountered: