Skip to content

Release v4.0.3 adds a reanimated bug #847

@InkaAlicja

Description

@InkaAlicja

Describe the bug
v4.0.3 adds a reanimated bug - it reads from value during render. This is prohibited.
Here is the added code causing the issue:
https://github.com/dohooo/react-native-reanimated-carousel/pull/834/files#diff-c662647aa188103a615992880b70f15b01bf0628c1c6568ac66027a6204dd31aR81-R82
https://github.com/dohooo/react-native-reanimated-carousel/pull/834/files#diff-fc926ece907ee027904d9350be1dd410527cbf2e21d9ec4761ce324c5691191bR111-R112

Not sure about this one:
https://github.com/dohooo/react-native-reanimated-carousel/pull/834/files#diff-1809b33deeff2195d46d110a4e8140f0899049cdd83c12450c8f781b8deaaefaR159

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
There should be no errors from reanimated

Screenshots

This shows up on the console after upgrading from v4.0.2 to v4.0.3:

Image

Versions (please complete the following information):

  • react: v19.0.0
  • react-native: v0.79.5
  • react-native-reanimated: v3.17.5
  • react-native-reanimated-carousel: v4.0.3
  • react-native-gesture-handler: v2.25.0

Smartphone (please complete the following information):

  • Device: iPhone 16 (symulator)
  • OS: iOS 18.5

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions