mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0e7a2ca54e
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
22 lines
576 B
JavaScript
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');
|