Fix build

This commit is contained in:
KoalaSat 2024-03-29 20:05:50 +01:00 committed by Reckless_Satoshi
parent f416d2ac17
commit d3acb6bfb8
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
3 changed files with 13 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import TorClient from './services/Tor';
import Clipboard from '@react-native-clipboard/clipboard';
import EncryptedStorage from 'react-native-encrypted-storage';
import { name as app_name, version as app_version } from './package.json';
import TorModule from './lib/native/TorModule';
import TorModule from './native/TorModule';
const backgroundColors = {
light: 'white',

View File

@ -0,0 +1,11 @@
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;

View File

@ -1,4 +1,4 @@
import TorModule from '../../lib/native/TorModule';
import TorModule from '../../native/TorModule';
class TorClient {
public get: (baseUrl: string, path: string, headers: object) => Promise<object> = async (