Skip to content

Commit 9801356

Browse files
authored
[MOB-9974] Resolve deprecated API calls in the sample app (#754)
* Rename BugReporting removed `showWithOptions` to `show` This method was deprecated and then removed in #703, so it crashes the sample app when you press the "SEND BUG REPORT" button, for that I changed it to the current version of it, `BugReporting.show`. * Remove undefined `showIntroMessage` method in sample
1 parent 5537df4 commit 9801356

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

InstabugSample/App.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,6 @@ class Home extends Component<{}> {
103103
);
104104
}
105105

106-
showIntroMessage() {
107-
Instabug.showIntroMessage();
108-
}
109-
110106
invoke() {
111107
Instabug.show();
112108
}
@@ -124,7 +120,7 @@ class Home extends Component<{}> {
124120
}
125121

126122
sendBugReport() {
127-
BugReporting.showWithOptions(BugReporting.reportType.bug);
123+
BugReporting.show(BugReporting.reportType.bug);
128124
}
129125

130126
sendCrashReport() {

0 commit comments

Comments
 (0)