Files
react-native/Libraries/Blob/NativeFileReaderModule.js
T
Eric Lewis 0e7a2ca54e add spec for FileReaderModule (#24904)
Summary:
Part of #24875.

## Changelog

[General] [Added] - add TM spec for FileReaderModule
Pull Request resolved: https://github.com/facebook/react-native/pull/24904

Reviewed By: fkgozali

Differential Revision: D15391738

Pulled By: rickhanlonii

fbshipit-source-id: 69e6ff53aba2d2227607905e1f70310bdd01d224
2019-05-22 03:27:54 -07:00

22 lines
576 B
JavaScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
import type {TurboModule} from 'RCTExport';
import * as TurboModuleRegistry from 'TurboModuleRegistry';
export interface Spec extends TurboModule {
+readAsDataURL: (data: Object) => Promise<string>;
+readAsText: (data: Object, encoding: string) => Promise<string>;
}
export default TurboModuleRegistry.getEnforcing<Spec>('FileReaderModule');