mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b1b5bd4418
Summary: This diff introduces `NativeBugReporting` and eliminates all uses of `NativeModules.BugReporting` from our codebase. Reviewed By: ejanzer Differential Revision: D16717540 fbshipit-source-id: 67b8620ba9dd4b41557ae042c30bdc521e927d30
21 lines
611 B
JavaScript
21 lines
611 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.
|
|
*
|
|
* @format
|
|
* @flow
|
|
*/
|
|
|
|
import * as TurboModuleRegistry from '../TurboModule/TurboModuleRegistry';
|
|
import type {TurboModule} from '../TurboModule/RCTExport';
|
|
|
|
export interface Spec extends TurboModule {
|
|
+startReportAProblemFlow: () => void;
|
|
+setExtraData: (extraData: Object, extraFiles: Object) => void;
|
|
+setCategoryID: (categoryID: string) => void;
|
|
}
|
|
|
|
export default TurboModuleRegistry.get<Spec>('BugReporting');
|