robosats/mobile/native/TorModule.ts
2024-03-29 20:05:50 +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;