Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError: Cannot read properties of undefined (reading 'previousStyle') when experimenting readme example

See 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).

Not applied?

Platform (iOS/Android): React Native or Expo version: Expo v43.0.3 react-native-reanimated version: 2.2.4 react-native-gesture-handler version: 1.10.3

Additional context

The error was raised when testing the example on the web browser (using react-native-web).

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

computerjazzcommented, Nov 21, 2021
echamudicommented, Nov 21, 2021

Hey @tiagocpeixoto, have you tried downgrading react-native-reanimated to version 2.2.3? I had the same error in a different project, and downgrading the reanimated version solved the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jest error "Cannot read property 'previousStyle' of undefined"
Snack or minimal code example. Run test on a component with an animation. Package versions. React Native: 0.66; React Native Reanimated: 2.2.4 ...
Read more >
Cannot read properties of undefined (reading 'img') React ...
Please Guys i need Help, i got this error when i am compiling the code. i put items in a file data.js and...
Read more >
Discussions - ReadMe Documentation
Hello, the API Reference have two endpoints displaying this message since yesterday: "This endpoint's documentation is currently experiencing difficulties and ...
Read more >
Anchor锚点组件为什么没有随着页面滚动变化? - IssueHint
Uncaught TypeError : Cannot read properties of undefined (reading 'previousStyle') when experimenting readme example, 6, 2021-11-15, 2022-12-05.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found