Uncaught TypeError: Cannot read properties of undefined (reading 'previousStyle') when experimenting readme exampleSee original GitHub issue
This package has external dependencies of react-native-reanimated and react-native-gesture-handler which must be installed separately. Before opening an issue related to animations or gestures please verify that you have completed ALL installation steps, including the changes to MainActivity.
Describe the bug When experimenting with the readme example and after swiping any list item, I got the error “Uncaught TypeError: Cannot read properties of undefined (reading ‘previousStyle’)”. After that, the browser almost froze during this weird error.
Steps to reproduce the behavior:
Just try the readme example.
Platform & Dependencies Please list any applicable dependencies in addition to those below (react-navigation etc).
React Native or Expo version: Expo v43.0.3
react-native-reanimated version: 2.2.4
react-native-gesture-handler version: 1.10.3
The error was raised when testing the example on the web browser (using react-native-web).
- Created a year ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
ah yep, it’s an error with reanimated: https://github.com/software-mansion/react-native-reanimated/issues/2635
Hey @tiagocpeixoto, have you tried downgrading
2.2.3? I had the same error in a different project, and downgrading the reanimated version solved the problem.