mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-03-05 18:27:30 +08:00
feat: Support remote input
This commit is contained in:
13
types/react-native-http-bridge.d.ts
vendored
Normal file
13
types/react-native-http-bridge.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
declare module 'react-native-http-bridge' {
|
||||
import { EmitterSubscription } from 'react-native';
|
||||
|
||||
interface HttpBridge {
|
||||
start(port: number, serviceName: string, callback: (request: { url: string; type: string; requestId: string; postData: string }) => void): void;
|
||||
stop(): void;
|
||||
on(event: 'request', callback: (request: any) => void): EmitterSubscription;
|
||||
respond(requestId: string, code: number, type: string, body: string): void;
|
||||
}
|
||||
|
||||
const httpBridge: HttpBridge;
|
||||
export default httpBridge;
|
||||
}
|
||||
Reference in New Issue
Block a user