Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing configureLayoutAnimation on web #4289

Merged
merged 2 commits into from
Mar 28, 2023

Conversation

tomekzaw
Copy link
Member

Summary

This PR adds missing configureLayoutAnimation method in JSReanimated class and resolves a crash when using Layout Animations on web or while debugging in Chrome.

Fixes #3964.

Test plan

  1. Copy BasicLayoutAnimation.tsx into WebExample/App.tsx
  2. Launch WebExample
  3. See the error in the browser console
  4. Apply this patch
  5. ???
  6. Profit

@tomekzaw tomekzaw requested a review from piaskowyk March 28, 2023 07:58
Copy link
Member

@piaskowyk piaskowyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐎

@tomekzaw tomekzaw added this pull request to the merge queue Mar 28, 2023
Merged via the queue into main with commit bbfe42e Mar 28, 2023
@tomekzaw tomekzaw deleted the @tomekzaw/configure-layout-animation-web branch March 28, 2023 08:03
@emzet93
Copy link

emzet93 commented Apr 11, 2023

is it released already? I'm still facing this issue on web on 3.0.2

@tomekzaw
Copy link
Member Author

@emzet93 Nope, it will be released in 3.1.0 soon.

@emzet93
Copy link

emzet93 commented Apr 11, 2023

Thanks 🙏 Will use patch package in the meantime.

fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
## Summary

This PR adds missing `configureLayoutAnimation` method in `JSReanimated`
class and resolves a crash when using Layout Animations on web or while
debugging in Chrome.

Fixes software-mansion#3964.

## Test plan

1. Copy BasicLayoutAnimation.tsx into WebExample/App.tsx
2. Launch WebExample
3. See the error in the browser console
4. Apply this patch
5. ???
6. Profit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cannot read properties of undefined (reading 'configurelayoutanimation') on ios while debugging in chrome
3 participants