mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 05:34:15 +00:00
fix typo RTC to RCT
Summary: Explain the **motivation** for making this change. What existing problem does the pull request solve? Descriptions about class names are incorrect. Closes https://github.com/facebook/react-native/pull/11898 Differential Revision: D4418957 fbshipit-source-id: fc7d0b61149ed9f850a436a35ad98f179b5e3e19
This commit is contained in:
parent
930010ec91
commit
bc432ae324
@ -260,10 +260,10 @@ RCT_EXPORT_METHOD(doSomethingExpensive:(NSString *)param callback:(RCTResponseSe
|
||||
## Dependency Injection
|
||||
The bridge initializes any registered RCTBridgeModules automatically, however you may wish to instantiate your own module instances (so you may inject dependencies, for example).
|
||||
|
||||
You can do this by creating a class that implements the RTCBridgeDelegate Protocol, initializing an RTCBridge with the delegate as an argument and initialising a RTCRootView with the initialized bridge.
|
||||
You can do this by creating a class that implements the RCTBridgeDelegate Protocol, initializing an RCTBridge with the delegate as an argument and initialising a RCTRootView with the initialized bridge.
|
||||
|
||||
```objective-c
|
||||
id<RCTBridgeDelegate> moduleInitialiser = [[classThatImplementsRTCBridgeDelegate alloc] init];
|
||||
id<RCTBridgeDelegate> moduleInitialiser = [[classThatImplementsRCTBridgeDelegate alloc] init];
|
||||
|
||||
RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:moduleInitialiser launchOptions:nil];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user