-
Notifications
You must be signed in to change notification settings - Fork 428
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
app crashing in react native version 0.75.4 with new architecture #882
Comments
Same issue here. "react-native": "0.75.3", |
Same here. Please help! 🙏 |
I am getting the same error |
I had the same issue with Execution failed for task ':react-native-pager-view:compileDebugKotlin'. That fixed it for me |
Where are you folks getting this error? Try software-mansion/react-native-screens@b67af86. It fixed navigating with |
|
In my case, the error was resolved with the following environment: // android/app/build.gradle
dependencies {
// other dependencies
implementation 'androidx.viewpager2:viewpager2:1.1.0'
implementation 'androidx.recyclerview:recyclerview:1.3.2'
} "react-native": "^0.75.4", |
Just upgraded |
Getting this issue with [email protected]. I have a PagerView in a Stack.Screen, which may be causing the issue. This doesn't happen using the old arch.
|
Just tried this with v6.5.0 and the issue persists. |
There are issues with using react-screens native stack |
+1, crash in change from PageViewer (that in Stack.Screen) in Nested Stack.Screen
|
Please provide a reproduction repo. |
(NOBRIDGE) ERROR Error: Exception in HostFunction: java.lang.IllegalStateException: ViewPager2 does not support direct child views "react-native": "0.76.2", newArch enabled looks like it's related to software-mansion/react-native-screens#2529 |
this is an error from core/react-native-screens, for now please use patch as in this PR: |
Issue fixed in callstack/react-native-pager-view v6.5.1, Now i'm not observing the crash https://github.com/callstack/react-native-pager-view/releases/tag/v6.5.1 |
React Native App crashing
FATAL EXCEPTION: main
Process: com.test.app, PID: 11360
java.lang.IllegalArgumentException: Scrapped or attached views may not be recycled. isScrap:false isAttached:true androidx.viewpager2.widget.ViewPager2$RecyclerViewImpl{1b4b462 VFED..... ......ID 0,0-975,1964 #2}, adapter:com.reactnativepagerview.ViewPagerAdapter@eb2d9f3, layout:androidx.viewpager2.widget.ViewPager2$LinearLayoutManagerImpl@58106b0, context:com.facebook.react.uimanager.ThemedReactContext@f0c1813
at androidx.recyclerview.widget.RecyclerView$Recycler.recycleViewHolderInternal(RecyclerView.java:6433)
at androidx.recyclerview.widget.RecyclerView.removeAnimatingView(RecyclerView.java:1456)
at androidx.recyclerview.widget.RecyclerView$ItemAnimatorRestoreListener.onAnimationFinished(RecyclerView.java:12699)
at androidx.recyclerview.widget.RecyclerView$ItemAnimator.dispatchAnimationFinished(RecyclerView.java:13199)
at androidx.recyclerview.widget.SimpleItemAnimator.dispatchRemoveFinished(SimpleItemAnimator.java:277)
at androidx.recyclerview.widget.DefaultItemAnimator$4.onAnimationEnd(DefaultItemAnimator.java:213)
at android.view.ViewPropertyAnimator$AnimatorEventListener.onAnimationEnd(ViewPropertyAnimator.java:1115)
at android.animation.Animator$AnimatorListener.onAnimationEnd(Animator.java:708)
at android.animation.Animator$AnimatorCaller$$ExternalSyntheticLambda1.call(D8$$SyntheticClass:0)
at android.animation.Animator.callOnList(Animator.java:666)
at android.animation.Animator.notifyListeners(Animator.java:609)
at android.animation.Animator.notifyEndListeners(Animator.java:634)
at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1306)
at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1566)
at android.animation.AnimationHandler.doAnimationFrame(AnimationHandler.java:344)
at android.animation.AnimationHandler.-$$Nest$mdoAnimationFrame(Unknown Source:0)
at android.animation.AnimationHandler$1.doFrame(AnimationHandler.java:87)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1404)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1415)
at android.view.Choreographer.doCallbacks(Choreographer.java:1015)
at android.view.Choreographer.doFrame(Choreographer.java:941)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1389)
at android.os.Handler.handleCallback(Handler.java:959)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8705)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886)
"react-native": "0.75.4",
"react-native-pager-view": "^6.4.1",
The text was updated successfully, but these errors were encountered: