diff --git a/apple/native/REAInitializer.h b/apple/native/REAInitializer.h deleted file mode 100644 index c6fc3264d74..00000000000 --- a/apple/native/REAInitializer.h +++ /dev/null @@ -1,38 +0,0 @@ -/* - Note: Files REAInitializer.h and REAInitializer.m are deprecated and will - be removed in future releases. They are currently kept for backward - compatibility and will be retained for a few upcoming releases. -*/ - -#ifndef RCT_NEW_ARCH_ENABLED - -#import -#import - -#if REACT_NATIVE_MINOR_VERSION <= 71 -#import -using namespace facebook::react; -#endif // REACT_NATIVE_MINOR_VERSION <= 71 - -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:: - RuntimeInstaller - REAJSIExecutorRuntimeInstaller( - RCTBridge *bridge, - JSIExecutor::RuntimeInstaller runtimeInstallerToWrap); -#endif // REACT_NATIVE_MINOR_VERSION <= 71 - -} // namespace reanimated - -NS_ASSUME_NONNULL_END - -#endif // RCT_NEW_ARCH_ENABLED diff --git a/apple/native/REAInitializer.mm b/apple/native/REAInitializer.mm deleted file mode 100644 index fa786df7611..00000000000 --- a/apple/native/REAInitializer.mm +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef RCT_NEW_ARCH_ENABLED - -#import - -namespace reanimated { - -void REAInitializer(RCTBridge *bridge) -{ - // do nothing, just for backward compatibility -} - -#if REACT_NATIVE_MINOR_VERSION <= 71 - -JSIExecutor::RuntimeInstaller REAJSIExecutorRuntimeInstaller( - RCTBridge *bridge, - JSIExecutor::RuntimeInstaller runtimeInstallerToWrap) -{ - const auto runtimeInstaller = [runtimeInstallerToWrap](facebook::jsi::Runtime &runtime) { - if (runtimeInstallerToWrap) { - runtimeInstallerToWrap(runtime); - } - }; - return runtimeInstaller; -} - -#endif // REACT_NATIVE_MINOR_VERSION <= 71 - -} // namespace reanimated - -#endif // RCT_NEW_ARCH_ENABLED