Skip to content

Commit

Permalink
Mock REAInitializer for backward compatibility (#4880)
Browse files Browse the repository at this point in the history
## Summary

Fixes
#4631

In #4619
I removed REAInitializer because it is no longer needed. However, some
brownfield apps still use it. This PR adds a mock for REAInitializer to
ensure backward compatibility.

## Test plan

CI
  • Loading branch information
piaskowyk authored Aug 4, 2023
1 parent 60c177b commit 651d663
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/native/REAInitializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ NS_ASSUME_NONNULL_BEGIN

namespace reanimated {

[[deprecated(
"REAInitializer method is no longer required, you can just remove invocation.")]] void
REAInitializer(RCTBridge *bridge);

#if REACT_NATIVE_MINOR_VERSION <= 71
[[deprecated(
"REAJSIExecutorRuntimeInstaller method is no longer required, you can just remove invocation.")]] JSIExecutor::
Expand Down
5 changes: 5 additions & 0 deletions ios/native/REAInitializer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

namespace reanimated {

void REAInitializer(RCTBridge *bridge)
{
// do nothing, just for backward compatibility
}

#if REACT_NATIVE_MINOR_VERSION <= 71

JSIExecutor::RuntimeInstaller REAJSIExecutorRuntimeInstaller(
Expand Down

0 comments on commit 651d663

Please sign in to comment.