Skip to content

Commit 4885467

Browse files
committed
📝 Removed the setFloatingButtonEdge mapping method from the module class
1 parent 8487002 commit 4885467

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

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

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -529,38 +529,6 @@ private InstabugInvocationEvent getInvocationEventById(String invocationEventVal
529529
}
530530
}
531531

532-
/**
533-
* Sets the default edge at which the floating button will be shown
534-
*
535-
* @param instabugFloatingButtonEdge edge to stick Floating button to
536-
* @see InstabugFloatingButtonEdge
537-
*/
538-
539-
@ReactMethod
540-
public void setFloatingButtonEdge(String floatingButtonEdgeValue) {
541-
try {
542-
mInstabug.setFloatingButtonEdge(getFloatingButtonEdge(floatingButtonEdgeValue));
543-
} catch (Exception e) {
544-
e.printStackTrace();
545-
}
546-
}
547-
548-
private InstabugFloatingButtonEdge getFloatingButtonEdge(String floatingButtonEdgeValue) {
549-
InstabugFloatingButtonEdge floatingButtonEdge = InstabugFloatingButtonEdge.RIGHT;
550-
try {
551-
if (floatingButtonEdgeValue.equals(FLOATING_BUTTON_EDGE_LEFT)) {
552-
floatingButtonEdge = InstabugFloatingButtonEdge.LEFT;
553-
} else if (floatingButtonEdgeValue.equals(FLOATING_BUTTON_EDGE_RIGHT)) {
554-
floatingButtonEdge = InstabugFloatingButtonEdge.RIGHT;
555-
}
556-
557-
return invocationEvent;
558-
} catch (Exception e) {
559-
e.printStackTrace();
560-
return invocationEvent;
561-
}
562-
}
563-
564532
/**
565533
* Enabled/disable chat notification
566534
*

0 commit comments

Comments
 (0)