File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,17 @@ module.exports = {
103
103
104
104
} ,
105
105
106
+ /**
107
+ * Shows Survey with a specific token.
108
+ * Does nothing if there are no available surveys with that specific token.
109
+ * Answered and canceled surveys won't show up again.
110
+ * @param {string } surveyToken - A String with a survey token.
111
+ *
112
+ */
113
+ showSurveyWithToken : function ( surveyToken ) {
114
+ Instabug . showSurveyWithToken ( surveyToken ) ;
115
+ } ,
116
+
106
117
/**
107
118
* Sets a block of code to be executed just before the SDK's UI is presented.
108
119
* This block is executed on the UI thread. Could be used for performing any
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ - (dispatch_queue_t)methodQueue {
61
61
[Instabug IBGLog: log];
62
62
}
63
63
64
+ RCT_EXPORT_METHOD (showSurveyWithToken:(NSString *)surveyToken) {
65
+ [Instabug showSurveyWithToken: surveyToken];
66
+ }
67
+
64
68
RCT_EXPORT_METHOD (setUserStepsEnabled:(BOOL )isUserStepsEnabled) {
65
69
[Instabug setUserStepsEnabled: isUserStepsEnabled];
66
70
}
You can’t perform that action at this time.
0 commit comments