mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2026-09-02 07:01:13 +00:00
📝 Removed the setFloatingButtonEdge mapping method from the module class
This commit is contained in:
@@ -529,38 +529,6 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the default edge at which the floating button will be shown
|
||||
*
|
||||
* @param instabugFloatingButtonEdge edge to stick Floating button to
|
||||
* @see InstabugFloatingButtonEdge
|
||||
*/
|
||||
|
||||
@ReactMethod
|
||||
public void setFloatingButtonEdge(String floatingButtonEdgeValue) {
|
||||
try {
|
||||
mInstabug.setFloatingButtonEdge(getFloatingButtonEdge(floatingButtonEdgeValue));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private InstabugFloatingButtonEdge getFloatingButtonEdge(String floatingButtonEdgeValue) {
|
||||
InstabugFloatingButtonEdge floatingButtonEdge = InstabugFloatingButtonEdge.RIGHT;
|
||||
try {
|
||||
if (floatingButtonEdgeValue.equals(FLOATING_BUTTON_EDGE_LEFT)) {
|
||||
floatingButtonEdge = InstabugFloatingButtonEdge.LEFT;
|
||||
} else if (floatingButtonEdgeValue.equals(FLOATING_BUTTON_EDGE_RIGHT)) {
|
||||
floatingButtonEdge = InstabugFloatingButtonEdge.RIGHT;
|
||||
}
|
||||
|
||||
return invocationEvent;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return invocationEvent;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Enabled/disable chat notification
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user