mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove getSurfacePresenter and getModuleRegistry from RCTHost
Summary: This change removes a couple of method from RCTHost which were not following the iOS convention for names. We deprecated them in 0.74 and now that the branch is cut, we can remove them. ## Changelog: [iOS][Breaking] - Remove `getSurfacePresenter` and `getModuleRegistry` from RCTHost Reviewed By: sammy-SC Differential Revision: D56633554 fbshipit-source-id: 88fd1525bfe68ca1f6c2d8403d0dec505a23e9f8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
94537c7beb
commit
f19371f28d
@@ -77,12 +77,6 @@ typedef std::shared_ptr<facebook::react::JSRuntimeFactory> (^RCTHostJSEngineProv
|
||||
|
||||
- (RCTFabricSurface *)createSurfaceWithModuleName:(NSString *)moduleName initialProperties:(NSDictionary *)properties;
|
||||
|
||||
- (RCTSurfacePresenter *)getSurfacePresenter __attribute__((deprecated("Use `surfacePresenter` property instead.")));
|
||||
|
||||
// Native module API
|
||||
|
||||
- (RCTModuleRegistry *)getModuleRegistry __attribute__((deprecated("Use `moduleRegistry` property instead.")));
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
@@ -289,23 +289,11 @@ class RCTHostHostTargetDelegate : public facebook::react::jsinspector_modern::Ho
|
||||
return _moduleRegistry;
|
||||
}
|
||||
|
||||
// Deprecated
|
||||
- (RCTModuleRegistry *)getModuleRegistry
|
||||
{
|
||||
return self.moduleRegistry;
|
||||
}
|
||||
|
||||
- (RCTSurfacePresenter *)surfacePresenter
|
||||
{
|
||||
return [_instance surfacePresenter];
|
||||
}
|
||||
|
||||
// Deprecated
|
||||
- (RCTSurfacePresenter *)getSurfacePresenter
|
||||
{
|
||||
return self.surfacePresenter;
|
||||
}
|
||||
|
||||
- (void)callFunctionOnJSModule:(NSString *)moduleName method:(NSString *)method args:(NSArray *)args
|
||||
{
|
||||
[_instance callFunctionOnJSModule:moduleName method:method args:args];
|
||||
|
||||
Reference in New Issue
Block a user