Skip to content

Commit 5944dd0

Browse files
committed
✨ Added Feature Requests & Crash Reporting Button to Sample App
1 parent 1fbdf93 commit 5944dd0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

InstabugSample/App.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ export default class App extends Component<{}> {
5757
<TouchableOpacity style={styles.button} onPress={()=>this.sendFeedback()}>
5858
<Text style={styles.text}> SEND FEEDBACK </Text>
5959
</TouchableOpacity>
60+
<TouchableOpacity style={styles.button} onPress={()=>this.sendCrashReport()}>
61+
<Text style={styles.text}> THROW HANDLED EXCEPTION </Text>
62+
</TouchableOpacity>
6063
<TouchableOpacity style={styles.button} onPress={()=>this.startNewConversation()}>
6164
<Text style={styles.text}> START A NEW CONVERSATION </Text>
6265
</TouchableOpacity>
@@ -66,6 +69,9 @@ export default class App extends Component<{}> {
6669
<TouchableOpacity style={styles.button} onPress={()=>this.showMultipleQuestionSurvey()}>
6770
<Text style={styles.text}> SHOW MULTIPLE QUESTION SURVEY </Text>
6871
</TouchableOpacity>
72+
<TouchableOpacity style={styles.button} onPress={()=>this.showFeatureRequests()}>
73+
<Text style={styles.text}> SHOW FEATURE REQUESTS </Text>
74+
</TouchableOpacity>
6975
<TouchableOpacity style={styles.button} onPress={()=>this.showUnreadMessagesCount()}>
7076
<Text style={styles.text}> GET UNREAD MESSAGES COUNT </Text>
7177
</TouchableOpacity>
@@ -153,6 +159,8 @@ export default class App extends Component<{}> {
153159
Surveys.showSurvey("pcV_mE2ttqHxT1iqvBxL0w");
154160
}
155161

162+
showFeatureRequests() {
163+
FeatureRequests.show();
156164
}
157165

158166
sendBugReport() {

0 commit comments

Comments
 (0)