amis-rpc-design/node_modules/react-native/Libraries/Blob/__mocks__/FileReaderModule.js
2023-10-07 19:42:30 +08:00

21 lines
438 B
JavaScript

/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict
* @format
*/
const FileReaderModule = {
async readAsText(): Promise<string> {
return '';
},
async readAsDataURL(): Promise<string> {
return 'data:text/plain;base64,NDI=';
},
};
module.exports = FileReaderModule;