Skip to content

useAnimatedRef with createAnimatedComponent(SectionList) will make app crash #8294

@chinamcafee

Description

@chinamcafee

Description

When using useAnimatedRef with Animated.createAnimatedComponent(SectionList), the application crashes with the error:
Error: Argument appears to not be a ReactComponent. Keys:

Image

Both the Expo Dev Client and the Expo Go environment will crash on both Android and iOS platforms.

📱 Environment

  • React Native: 0.81.4
  • React Native Reanimated: 4.1.2
  • React: 19.1.0
  • Platform: iOS/Android (reproduced on both)
  • Expo: ~54.0.10

Steps to reproduce

1、clone the repo below and run (Expo Go supported)
2、Press the Test1~4 Button

Image

3、Test 1~3 Works fine, but Test 4 crashes.

Snack or a link to a repository

https://github.com/chinamcafee/reanimated-sectionlist-bug-report

Reanimated version

4.1.2

Worklets version

0.5.1

React Native version

0.81.4

Platforms

Android

JavaScript runtime

Hermes

Workflow

Expo Go

Architecture

New Architecture (Fabric renderer)

Build type

Debug app & dev bundle

Device

Real device

Host machine

macOS

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

Labels

Platform: AndroidThis issue is specific to AndroidRepro providedA reproduction with a snippet of code, snack or repo is provided

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions