Skip to content

[0.77] Relax TurboModule interop layer strictness to prevent app crashes #772

@cipolleschi

Description

@cipolleschi

Target Branch(es)

0.77

Link to commit or PR to be picked

facebook/react-native@3bd3f10

Description

The interop layer for TM validates the method signatures as soon as a legacy module is loaded.

There are some scenarios, especially when a legacy module is implemented in Swift, where the signatures in objective-c and swift does not match and that would make the app crash because the runtime can't find the exact signature we expect.

The old architecture was not crashing but just bailing out.

This commit aligns the New Architecture behavior with the Old Architecture and it will unblock some people to migrate to the new architecture.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions