Skip to content

Commit 60f32e2

Browse files
committed
✨ Add showFeatureRequests API
1 parent f8a5951 commit 60f32e2

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,18 @@ public void disable() {
568568
}
569569
}
570570

571+
/**
572+
* Shows the UI for feature requests list
573+
*/
574+
@ReactMethod
575+
public void showFeatureRequests() {
576+
try {
577+
Instabug.showFeatureRequests();
578+
} catch (Exception e) {
579+
e.printStackTrace();
580+
}
581+
}
582+
571583
/**
572584
* @return application token
573585
*/

index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,14 @@ module.exports = {
933933
Instabug.setAutoShowingSurveysEnabled(autoShowingSurveysEnabled);
934934
},
935935

936+
/**
937+
* Shows the UI for feature requests list
938+
*
939+
*/
940+
showFeatureRequests: function() {
941+
Instabug.showFeatureRequests();
942+
},
943+
936944
/**
937945
* The event used to invoke the feedback form
938946
* @readonly

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,10 @@ - (dispatch_queue_t)methodQueue {
381381
[Instabug setSessionProfilerEnabled:sessionProfilerEnabled];
382382
}
383383

384+
RCT_EXPORT_METHOD(showFeatureRequests) {
385+
[Instabug showFeatureRequests];
386+
}
387+
384388
RCT_EXPORT_METHOD(isRunningLive:(RCTResponseSenderBlock)callback) {
385389
BOOL result = NO;
386390
#if TARGET_OS_SIMULATOR

0 commit comments

Comments
 (0)