Files
flipper/src/fb-stubs/UserFeedback.tsx
John Knox be22cc711a Use API to get prompt values
Summary: To keep it in sync with the JS implementation.

Reviewed By: danielbuechele

Differential Revision: D17208786

fbshipit-source-id: 8d89f33bfef22317266a0ad1e0c5689540d54f9e
2019-09-06 08:32:48 -07:00

31 lines
824 B
TypeScript

/**
* Copyright 2018-present Facebook.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @format
*/
export type FeedbackPrompt = {
preSubmitHeading: string;
postSubmitHeading: string;
commentPlaceholder: string;
bodyText: string;
predefinedComments: Array<string>;
shouldPopup: boolean;
};
export async function submitRating(rating: number): Promise<void> {
throw new Error('Method not implemented.');
}
export async function submitComment(
rating: number,
comment: string,
selectedPredefinedComments: string[],
allowUserInfoSharing: boolean,
): Promise<void> {
throw new Error('Method not implemented.');
}
export async function getPrompt(): Promise<FeedbackPrompt> {
throw new Error('Method not implemented.');
}