Skip to content

Commit 8487002

Browse files
committed
📝 Change the format of the package instance by adding all the default values to the builder
1 parent 057c5b1 commit 8487002

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ public RNInstabugReactnativePackage(String androidApplicationToken, Application
6262

6363
}
6464

65+
public RNInstabugReactnativePackage(String androidApplicationToken, Application androidApplication,
66+
String invocationEventValue, String primaryColor) {
67+
new RNInstabugReactnativePackage(androidApplicationToken,androidApplication,invocationEventValue,primaryColor,
68+
InstabugFloatingButtonEdge.RIGHT,250);
69+
}
70+
6571
public static class Builder {
6672
//FloatingButtonEdge
6773
private final String FLOATING_BUTTON_EDGE_RIGHT = "right";

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "instabug-reactnative",
3-
"version": "1.1.8",
3+
"version": "1.1.6",
44
"description": "React Native plugin for integrating the Instabug SDK",
55
"main": "index.js",
66
"repository": {
@@ -23,7 +23,7 @@
2323
"homepage": "https://github.com/Instabug/instabug-reactnative#readme",
2424
"rnpm": {
2525
"android": {
26-
"packageInstance": "new RNInstabugReactnativePackage.Builder(\"YOUR_ANDROID_APPLICATION_TOKEN\",MainApplication.this)\n.setInvocationEvent(\"shake\")\n.build()"
26+
"packageInstance": "new RNInstabugReactnativePackage.Builder(\"YOUR_ANDROID_APPLICATION_TOKEN\",MainApplication.this)\n.setInvocationEvent(\"shake\")\n.setPrimaryColor(\"#1D82DC\")\n.setFloatingEdge(\"left\")\n.setFloatingButtonOffsetFromTop(250)\n.build()"
2727
}
2828
}
2929
}

0 commit comments

Comments
 (0)