16 lines
625 B
C
16 lines
625 B
C
|
|
#import <Foundation/Foundation.h>
|
||
|
|
#import <jsi/jsi.h>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Forward declaration of React Native's Bridgeless-mode host class, just enough of it for Logos
|
||
|
|
* to hook `-instance:didInitializeRuntime:`. React Native ships no public header exposing this
|
||
|
|
* (it's an internal `ReactCommon/react/runtime` class), so the signature is declared by hand here -
|
||
|
|
* matches `RCTHost.h` in RainTweak (codeberg.org/raincord/RainTweak), which hooks the same method
|
||
|
|
* on a currently-shipping Discord iOS build.
|
||
|
|
*/
|
||
|
|
@interface RCTHost : NSObject
|
||
|
|
|
||
|
|
- (void)instance:(id)instance didInitializeRuntime:(facebook::jsi::Runtime &)runtime;
|
||
|
|
|
||
|
|
@end
|