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

refactor: get rid off deprecated useWorkletCallback #290

Merged
merged 4 commits into from
Dec 4, 2023

Conversation

kirillzyusko
Copy link
Owner

@kirillzyusko kirillzyusko commented Dec 3, 2023

📜 Description

Migrated useWorkletCallback to useCallback + worklet directive.

💡 Motivation and Context

useWorkletCallback is deprecated from 3.6.1 version. Usage of deprecated API is a risky thing, because it can be removed at any point of time, so I migrated it back to useCallback + worklet.

Also I updated reanimated to 3.6.1 version and removed unused @ts-expect-error directives.

Closes #289

📢 Changelog

JS

  • updated reanimated to version 3.6.1;
  • useWorkletCallback -> useCallback + worklet directive;
  • removed unnecessary @ts-expect-error directives;

e2e

  • updated AwareScrollViewKeyboardClosed screenshot (it should have scroll back when keyboard gets hidden);

🤔 How Has This Been Tested?

Tested manually on API 28 emulator + e2e tests;

📝 Checklist

  • CI successfully passed

@kirillzyusko kirillzyusko added the refactor You changed the code but it didn't affect functionality label Dec 3, 2023
@kirillzyusko kirillzyusko self-assigned this Dec 3, 2023
Copy link
Contributor

github-actions bot commented Dec 3, 2023

📊 Package size report

Current size Target Size Difference
79953 bytes 80186 bytes -233 bytes 📉

@kirillzyusko kirillzyusko added the e2e Anything about E2E tests label Dec 4, 2023
@kirillzyusko kirillzyusko marked this pull request as ready for review December 4, 2023 10:35
@kirillzyusko kirillzyusko merged commit 64dc299 into main Dec 4, 2023
11 checks passed
@kirillzyusko kirillzyusko deleted the fix/289-deprecated-use-worklet-callback branch December 4, 2023 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e Anything about E2E tests refactor You changed the code but it didn't affect functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'useWorkletCallback' is deprecated.
1 participant