Skip to content

Commit 7109deb

Browse files
committed
Adds development not for unimplemented function
1 parent 4b290a2 commit 7109deb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/core/src/js/feedback/defaults.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { getCurrentScope } from '@sentry/core';
2+
import { Alert } from 'react-native';
23

34
import type { FeedbackFormProps } from './FeedbackForm.types';
45

@@ -20,7 +21,12 @@ const SUCCESS_MESSAGE_TEXT = 'Thank you for your report!';
2021
export const defaultConfiguration: Partial<FeedbackFormProps> = {
2122
// FeedbackCallbacks
2223
onFormClose: () => {
23-
// By default the form is just unmounted
24+
if (__DEV__) {
25+
Alert.alert(
26+
'Development note',
27+
'onFormClose callback is not implemented. By default the form is just unmounted.',
28+
);
29+
}
2430
},
2531

2632
// FeedbackGeneralConfiguration

0 commit comments

Comments
 (0)