BlueWallet/blue_modules/react-native-bw-file-access/index.ts

12 lines
249 B
TypeScript
Raw Normal View History

2023-11-12 15:41:51 +01:00
// main index.js
import { NativeModules } from 'react-native';
const { BwFileAccess } = NativeModules;
2024-02-18 10:21:43 +00:00
export function readFile(filePath: string): Promise<string> {
2023-11-12 15:41:51 +01:00
return BwFileAccess.readFileContent(filePath);
}
export default BwFileAccess;