mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Round 2: Remove synthesize bridge = _bridge
Summary: All NativeModules that used to use the bridge to require other NativeModules now require other NativeModules via the Venice-compatible RCTModuleRegistry abstraction. Therefore, we can safely get rid of synthesize bridge = _bridge from them. ## How did I generate this diff? 1. Search for all NativeModules that have `synthesize bridge =` 2. Remove the `synthesize bridge = _bridge` from each NativeModule, and if it doesn't contain `_bridge`, `setBridge:`, or `elf.bridge`, add it to this codemod. Changelog: [Internal] Reviewed By: PeteTheHeat Differential Revision: D25551295 fbshipit-source-id: 585d50ad55cb9ab083e430b07e1cf30e31f0d3c5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b4c9f13fe7
commit
df0bfec201
@@ -23,7 +23,6 @@
|
||||
|
||||
RCT_EXPORT_MODULE(FileReaderModule)
|
||||
|
||||
@synthesize bridge = _bridge;
|
||||
@synthesize moduleRegistry = _moduleRegistry;
|
||||
|
||||
RCT_EXPORT_METHOD(readAsText:(NSDictionary<NSString *, id> *)blob
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
|
||||
RCT_EXPORT_MODULE()
|
||||
|
||||
@synthesize bridge = _bridge;
|
||||
@synthesize moduleRegistry = _moduleRegistry;
|
||||
|
||||
/**
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
std::mutex _mutex;
|
||||
}
|
||||
|
||||
@synthesize bridge = _bridge;
|
||||
@synthesize moduleRegistry = _moduleRegistry;
|
||||
@synthesize methodQueue = _methodQueue;
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
NSUserDefaults *_defaults;
|
||||
}
|
||||
|
||||
@synthesize bridge = _bridge;
|
||||
@synthesize moduleRegistry = _moduleRegistry;
|
||||
|
||||
RCT_EXPORT_MODULE()
|
||||
|
||||
@@ -27,7 +27,6 @@ using namespace facebook::react;
|
||||
NSDictionary *_currentInterfaceDimensions;
|
||||
}
|
||||
|
||||
@synthesize bridge = _bridge;
|
||||
@synthesize moduleRegistry = _moduleRegistry;
|
||||
@synthesize turboModuleRegistry = _turboModuleRegistry;
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
@implementation RCTExceptionsManager
|
||||
|
||||
@synthesize bridge = _bridge;
|
||||
@synthesize moduleRegistry = _moduleRegistry;
|
||||
|
||||
RCT_EXPORT_MODULE()
|
||||
|
||||
Reference in New Issue
Block a user