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

Bug fix on IOS check if method exists before swizzling it #4566

Merged
merged 4 commits into from
Jun 14, 2023

Conversation

Latropos
Copy link
Contributor

@Latropos Latropos commented Jun 13, 2023

Summary

Fixes #4485

Before swizzling some methods from react-native-screens, we should check if they exist to avoid crashes.

Test plan

@Latropos Latropos requested a review from piaskowyk June 13, 2023 09:37
@Latropos Latropos marked this pull request as ready for review June 13, 2023 09:45
@Latropos Latropos added this pull request to the merge queue Jun 14, 2023
Merged via the queue into main with commit d3b2b84 Jun 14, 2023
4 checks passed
@Latropos Latropos deleted the acynk/crash_fix branch June 14, 2023 12:03
Latropos added a commit that referenced this pull request Jun 20, 2023
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary
Fixes #4485

Before swizzling some methods from react-native-screens, we should check
if they exist to avoid crashes.

<!-- Explain the motivation for this PR. Include "Fixes #<number>" if
applicable. -->

## Test plan

<!-- Provide a minimal but complete code snippet that can be used to
test out this change along with instructions how to run it and a
description of the expected behavior. -->

---------

Co-authored-by: Aleksandra Cynk <aleksandracynk@swmansion.com>
Co-authored-by: Krzysztof Piaskowy <krzysztof.piaskowy@swmansion.com>
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.

crash app after upgrade to v3(IOS only)
2 participants