BlueWallet/blue_modules/react-native-bw-file-access/index.ts
2024-02-18 10:21:43 +00:00

12 lines
249 B
TypeScript

// main index.js
import { NativeModules } from 'react-native';
const { BwFileAccess } = NativeModules;
export function readFile(filePath: string): Promise<string> {
return BwFileAccess.readFileContent(filePath);
}
export default BwFileAccess;