File tree Expand file tree Collapse file tree 3 files changed +42
-1
lines changed Expand file tree Collapse file tree 3 files changed +42
-1
lines changed Original file line number Diff line number Diff line change @@ -801,6 +801,19 @@ module.exports = {
801
801
}
802
802
} ,
803
803
804
+ /**
805
+ * Sets the default position at which the Instabug screen recording button will be shown. Different orientations are already handled.
806
+ *
807
+ * (Default for `position` is `bottomRight`)
808
+ *
809
+ * @param position `topLeft` to show on the top left of screen , or `bottomRight` to show on the bottom right of scrren.
810
+ */
811
+ setVideoRecordingFloatingButtonPosition : function ( position ) {
812
+ if ( Platform . OS === 'ios' ) {
813
+ Instabug . setVideoRecordingFloatingButtonPosition ( position ) ;
814
+ }
815
+ } ,
816
+
804
817
/**
805
818
* The event used to invoke the feedback form
806
819
* @readonly
@@ -892,6 +905,18 @@ module.exports = {
892
905
right : Instabug . rectMaxXEdge ,
893
906
} ,
894
907
908
+ /**
909
+ * Instabug floating buttons positions.
910
+ * @readonly
911
+ * @enum {number}
912
+ */
913
+ IBGPosition : {
914
+ bottomRight : Instabug . bottomRight ,
915
+ topRight : Instabug . topRight ,
916
+ bottomLeft : Instabug . bottomLeft ,
917
+ topLeft : Instabug . topLeft
918
+ } ,
919
+
895
920
/**
896
921
* Instabug strings
897
922
* @readonly
Original file line number Diff line number Diff line change @@ -331,6 +331,10 @@ - (dispatch_queue_t)methodQueue {
331
331
[Instabug setViewHierarchyEnabled: viewHirearchyEnabled];
332
332
}
333
333
334
+ RCT_EXPORT_METHOD (setVideoRecordingFloatingButtonPosition:(IBGPosition)position) {
335
+ [Instabug setVideoRecordingFloatingButtonPosition: position];
336
+ }
337
+
334
338
RCT_EXPORT_METHOD (isRunningLive:(RCTResponseSenderBlock)callback) {
335
339
BOOL result = NO ;
336
340
#if TARGET_OS_SIMULATOR
@@ -374,6 +378,11 @@ - (NSDictionary *)constantsToExport
374
378
@" rectMaxXEdge" : @(CGRectMaxXEdge),
375
379
@" rectMaxYEdge" : @(CGRectMaxYEdge),
376
380
381
+ @" bottomRight" : @(IBGPositionBottomRight),
382
+ @" topRight" : @(IBGPositionTopRight),
383
+ @" bottomLeft" : @(IBGPositionBottomLeft),
384
+ @" topLeft" : @(IBGPositionTopLeft),
385
+
377
386
@" localeArabic" : @(IBGLocaleArabic),
378
387
@" localeChineseSimplified" : @(IBGLocaleChineseSimplified),
379
388
@" localeChineseTraditional" : @(IBGLocaleChineseTraditional),
Original file line number Diff line number Diff line change 7
7
//
8
8
9
9
#import " RCTConvert+InstabugEnums.h"
10
- #import < Instabug /IBGTypes.h>
10
+ #import < InstabugCore /IBGTypes.h>
11
11
12
12
@implementation RCTConvert (InstabugEnums)
13
13
@@ -71,6 +71,13 @@ @implementation RCTConvert (InstabugEnums)
71
71
@" colorThemeDark" : @(IBGColorThemeDark)
72
72
}), IBGColorThemeLight, integerValue);
73
73
74
+ RCT_ENUM_CONVERTER (IBGPosition, (@{
75
+ @" bottomRight" : @(IBGPositionBottomRight),
76
+ @" topRight" : @(IBGPositionTopRight),
77
+ @" bottomLeft" : @(IBGPositionBottomLeft),
78
+ @" topLeft" : @(IBGPositionTopLeft)
79
+ }), IBGPositionBottomRight, integerValue);
80
+
74
81
RCT_ENUM_CONVERTER (IBGString, (@{
75
82
@" shakeHint" : @(IBGStringShakeHint),
76
83
@" swipeHint" : @(IBGStringSwipeHint),
You can’t perform that action at this time.
0 commit comments