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 null-check to findHostInstanceFastPath #6884

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

piaskowyk
Copy link
Member

@piaskowyk piaskowyk commented Jan 10, 2025

Summary

This PR adds a missing null check for certain components that do not contain the _componentRef field. This can happen for example when you uses useAnimatedRef with FlashList.

Test plan

Use FlashList as a animated component

@piaskowyk piaskowyk marked this pull request as ready for review January 10, 2025 12:15
@piaskowyk piaskowyk requested a review from tomekzaw January 10, 2025 12:15
@piaskowyk piaskowyk added this pull request to the merge queue Jan 10, 2025
Merged via the queue into main with commit 6c55c86 Jan 10, 2025
10 checks passed
@piaskowyk piaskowyk deleted the @piaskowyk/findNodeHandler-nullcheck branch January 10, 2025 13:27
tomekzaw pushed a commit that referenced this pull request Jan 10, 2025
## Summary

This PR adds a missing null check for certain components that do not
contain the `_componentRef` field. This can happen for example when you
uses `useAnimatedRef` with FlashList.

## Test plan

Use FlashList as a animated component
This was referenced Jan 10, 2025
github-merge-queue bot pushed a commit that referenced this pull request Jan 13, 2025
## Summary

This PR bumps `react-native` in paper-example and fabric-example from
`0.76.5` to `0.77.0-rc.6` (golden RC) accordingly to
https://react-native-community.github.io/upgrade-helper/?from=0.76.5&to=0.77.0-rc.6.

Apart from this, changes have been made in macos-example, tvos-example
and web-example to align versions of common native dependencies so they
are hoisted by yarn.

I had to patch `@shopify/flash-list`:
* Shopify/flash-list#1466 – fixes Android
build
* Shopify/flash-list#1041 – fixes `scrollTo`
example

Changes required by Reanimated to support RN 0.77 have been moved to
separate PRs for the sake of atomicity and transparency:
* #6875
* #6876
* #6883
* #6884

## Test plan

---------

Co-authored-by: Krzysztof Piaskowy <[email protected]>
tomekzaw pushed a commit that referenced this pull request Jan 13, 2025
## Summary

This PR adds a missing null check for certain components that do not
contain the `_componentRef` field. This can happen for example when you
uses `useAnimatedRef` with FlashList.

## Test plan

Use FlashList as a animated component
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.

2 participants