mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
Fix build
This commit is contained in:
parent
f416d2ac17
commit
d3acb6bfb8
@ -5,7 +5,7 @@ import TorClient from './services/Tor';
|
|||||||
import Clipboard from '@react-native-clipboard/clipboard';
|
import Clipboard from '@react-native-clipboard/clipboard';
|
||||||
import EncryptedStorage from 'react-native-encrypted-storage';
|
import EncryptedStorage from 'react-native-encrypted-storage';
|
||||||
import { name as app_name, version as app_version } from './package.json';
|
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 = {
|
const backgroundColors = {
|
||||||
light: 'white',
|
light: 'white',
|
||||||
|
11
mobile/native/TorModule.ts
Normal file
11
mobile/native/TorModule.ts
Normal 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;
|
@ -1,4 +1,4 @@
|
|||||||
import TorModule from '../../lib/native/TorModule';
|
import TorModule from '../../native/TorModule';
|
||||||
|
|
||||||
class TorClient {
|
class TorClient {
|
||||||
public get: (baseUrl: string, path: string, headers: object) => Promise<object> = async (
|
public get: (baseUrl: string, path: string, headers: object) => Promise<object> = async (
|
||||||
|
Loading…
Reference in New Issue
Block a user