17 lines
578 B
C
17 lines
578 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#import <Foundation/Foundation.h>
|
||
|
|
#import <jsi/jsi.h>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Minimal JSI helper: evaluates a script directly against a live `facebook::jsi::Runtime`,
|
||
|
|
* instead of re-entering React Native's own bundle-loading machinery. Ported from RainTweak
|
||
|
|
* (codeberg.org/raincord/RainTweak), an actively-maintained loader for a sibling Revenge/Bunny
|
||
|
|
* fork that verified this approach works on current (Bridgeless) Discord iOS builds.
|
||
|
|
*/
|
||
|
|
@interface JSI : NSObject
|
||
|
|
|
||
|
|
+ (void)evaluate:(NSData *)scriptData tag:(NSString *)tag runtime:(facebook::jsi::Runtime &)runtime;
|
||
|
|
|
||
|
|
@end
|