Skip to content

Commit 1fbdf93

Browse files
committed
✨ Added Surveys to Sample App
1 parent 5c23929 commit 1fbdf93

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

InstabugSample/App.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ export default class App extends Component<{}> {
6060
<TouchableOpacity style={styles.button} onPress={()=>this.startNewConversation()}>
6161
<Text style={styles.text}> START A NEW CONVERSATION </Text>
6262
</TouchableOpacity>
63+
<TouchableOpacity style={styles.button} onPress={()=>this.showNpsSurvey()}>
64+
<Text style={styles.text}> SHOW NPS SURVEY </Text>
65+
</TouchableOpacity>
66+
<TouchableOpacity style={styles.button} onPress={()=>this.showMultipleQuestionSurvey()}>
67+
<Text style={styles.text}> SHOW MULTIPLE QUESTION SURVEY </Text>
68+
</TouchableOpacity>
6369
<TouchableOpacity style={styles.button} onPress={()=>this.showUnreadMessagesCount()}>
6470
<Text style={styles.text}> GET UNREAD MESSAGES COUNT </Text>
6571
</TouchableOpacity>
@@ -139,6 +145,14 @@ export default class App extends Component<{}> {
139145
BugReporting.invoke();
140146
}
141147

148+
showMultipleQuestionSurvey() {
149+
Surveys.showSurvey("ZAKSlVz98QdPyOx1wIt8BA");
150+
}
151+
152+
showNpsSurvey() {
153+
Surveys.showSurvey("pcV_mE2ttqHxT1iqvBxL0w");
154+
}
155+
142156
}
143157

144158
sendBugReport() {

0 commit comments

Comments
 (0)