From 408bcdeedbc89cc9b90de73684d3f691b8e2e724 Mon Sep 17 00:00:00 2001 From: Ramanpreet Nara Date: Tue, 8 Dec 2020 20:25:45 -0800 Subject: [PATCH] Remove unneeded @synthesize bridge from NativeModules Summary: This is a codemod. All these NativeModules demand access to the bridge. However, they don't use it. Changelog: [Internal] Reviewed By: PeteTheHeat, RoelCastano Differential Revision: D25386708 fbshipit-source-id: f05f4777d2527e96e53581e7ac58f6be47411dce --- Libraries/Blob/RCTFileReaderModule.mm | 1 - .../nativemodule/samples/platform/ios/RCTSampleTurboModule.mm | 1 - 2 files changed, 2 deletions(-) diff --git a/Libraries/Blob/RCTFileReaderModule.mm b/Libraries/Blob/RCTFileReaderModule.mm index 315605acc11..1b9a63f9559 100644 --- a/Libraries/Blob/RCTFileReaderModule.mm +++ b/Libraries/Blob/RCTFileReaderModule.mm @@ -23,7 +23,6 @@ RCT_EXPORT_MODULE(FileReaderModule) -@synthesize bridge = _bridge; @synthesize turboModuleRegistry = _turboModuleRegistry; RCT_EXPORT_METHOD(readAsText:(NSDictionary *)blob diff --git a/ReactCommon/react/nativemodule/samples/platform/ios/RCTSampleTurboModule.mm b/ReactCommon/react/nativemodule/samples/platform/ios/RCTSampleTurboModule.mm index 526dc433a16..3e019c791ea 100644 --- a/ReactCommon/react/nativemodule/samples/platform/ios/RCTSampleTurboModule.mm +++ b/ReactCommon/react/nativemodule/samples/platform/ios/RCTSampleTurboModule.mm @@ -17,7 +17,6 @@ using namespace facebook::react; // Backward-compatible export RCT_EXPORT_MODULE() -@synthesize bridge = _bridge; @synthesize turboModuleRegistry = _turboModuleRegistry; // Backward-compatible queue configuration