robosats/mobile/native/TorModule.ts
2024-04-30 14:56:20 +01:00

12 lines
334 B
TypeScript

import { NativeModules } from 'react-native';
const { TorModule } = NativeModules;
interface TorModuleInterface {
start: () => void;
restart: () => void;
getTorStatus: () => void;
sendRequest: (action: string, url: string, headers: string, body: string) => Promise<string>;
}
export default TorModule as TorModuleInterface;