Skip to content

Reactive native 0.76.3 Getting Exception java.lang.IllegalArgumentException in recycleViewHolderInternal #50393

Closed as not planned

Description

@aryanagarwal15

Description

The Play Store is flagging my app for exceeding the bad behavior threshold due to a crash I can't reproduce on iOS or the listed Android devices. I'm seeking help from the community and moderators to identify and resolve this issue. Any guidance would be greatly appreciated.

Steps to reproduce

React Native Version

0.76.3

Affected Platforms

Runtime - Android

Output of npx @react-native-community/cli info

System:
  OS: macOS 15.0.1
  CPU: (11) arm64 Apple M3 Pro
  Memory: 287.11 MB / 18.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 20.10.0
    path: /usr/local/bin/node
  Yarn: Not Found
  npm:
    version: 10.9.1
    path: /node_modules/.bin/npm
  Watchman:
    version: 2024.11.25.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK:
    API Levels:
      - "31"
      - "33"
      - "34"
      - "35"
    Build Tools:
      - 30.0.3
      - 31.0.0
      - 33.0.1
      - 34.0.0
      - 35.0.0
    System Images:
      - android-33 | Google APIs ARM 64 v8a
      - android-34 | Google APIs ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23339.11.2421.12550806
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 21.0.3
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.2
    wanted: ^15.1.2
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.3
    wanted: 0.76.3
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

Exception java.lang.IllegalArgumentException:
  at androidx.recyclerview.widget.RecyclerView$Recycler.recycleViewHolderInternal (RecyclerView.java:7071)
  at androidx.recyclerview.widget.RecyclerView$Recycler.quickRecycleScrapView (RecyclerView.java:7194)
  at androidx.recyclerview.widget.RecyclerView$LayoutManager.removeAndRecycleScrapInt (RecyclerView.java:10076)
  at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep3 (RecyclerView.java:4717)
  at androidx.recyclerview.widget.RecyclerView.dispatchLayout (RecyclerView.java:4367)
  at androidx.recyclerview.widget.RecyclerView.onLayout (RecyclerView.java:4919)
  at android.view.View.layout (View.java:25378)
  at android.view.ViewGroup.layout (ViewGroup.java:6421)
  at androidx.viewpager2.widget.ViewPager2.onLayout (ViewPager2.java:535)
  at android.view.View.layout (View.java:25378)
  at android.view.ViewGroup.layout (ViewGroup.java:6421)
  at com.reactnativepagerview.PagerViewViewManagerImpl.refreshViewChildrenLayout$lambda$2 (PagerViewViewManagerImpl.kt:162)
  at com.reactnativepagerview.PagerViewViewManagerImpl.$r8$lambda$GQgd023cnWEAb4sL7PYFpO-lrvQ (Unknown Source)
  at com.reactnativepagerview.PagerViewViewManagerImpl$$ExternalSyntheticLambda1.run (D8$$SyntheticClass)
  at android.os.Handler.handleCallback (Handler.java:959)
  at android.os.Handler.dispatchMessage (Handler.java:100)
  at android.os.Looper.loopOnce (Looper.java:258)
  at android.os.Looper.loop (Looper.java:356)
  at android.app.ActivityThread.main (ActivityThread.java:8837)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:598)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:896)

Reproducer

I am unable to produce internally

Screenshots and Videos

No response

Activity

  1. react-native-bot commented on Mar 31, 2025

    @react-native-bot
    Collaborator

    Tip

    Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - 0.76.8. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

  2. react-native-bot commented on Mar 31, 2025

    @react-native-bot
    Collaborator

    Tip

    Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

  3. react-native-bot commented on Mar 31, 2025

    @react-native-bot
    Collaborator

    Warning

    Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

  4. cipolleschi commented on Mar 31, 2025

    @cipolleschi
    Contributor

    Hi @aryanagarwal15 , we are sorry you are facing this issue.

    From the stack trace, it looks like something is going on with the PagerView. Can you verify if the stack trace is the same for all the crashes that the App Store sent you? If that the case, it could be that the react-native-pager-view does not implement recycling correctly.
    In that case, can you open an issue in the react-native-pager-view repo?

  5. aryanagarwal15 commented on Apr 2, 2025

    @aryanagarwal15
    Author

    @cipolleschi thanks for the quick response, I have opened an issue here: react-native-pager-view

  6. react-native-bot commented on Sep 30, 2025

    @react-native-bot
    Collaborator

    This issue is stale because it has been open for 180 days with no activity. It will be closed in 7 days unless you comment on it or remove the "Stale" label.

  7. added
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    and removed
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Sep 30, 2025
  8. react-native-bot commented on Mar 29, 2026

    @react-native-bot
    Collaborator

    This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

  9. added
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    and removed
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Mar 29, 2026
  10. react-native-bot commented on Sep 25, 2026

    @react-native-bot
    Collaborator

    This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

  11. added
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Sep 25, 2026
  12. react-native-bot commented on Oct 2, 2026

    @react-native-bot
    Collaborator

    This issue was closed because it has been stalled for 7 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: AttentionIssues where the author has responded to feedback.Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.Newer Patch AvailableStaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions