mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-15 11:56:23 +00:00
12 lines
334 B
TypeScript
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;
|