plotline-engage 4.2.7 → 4.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -149,6 +149,11 @@ public class RNPlotline extends ReactContextBaseJavaModule {
|
|
|
149
149
|
Plotline.track(eventName, properties, activity);
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
@ReactMethod
|
|
153
|
+
public void setShouldDisablePlotline(boolean shouldDisablePlotline){
|
|
154
|
+
Plotline.setShouldDisablePlotline(shouldDisablePlotline);
|
|
155
|
+
}
|
|
156
|
+
|
|
152
157
|
@ReactMethod
|
|
153
158
|
public void showStory(String storyId, String slideId){
|
|
154
159
|
final Activity activity = getCurrentActivity();
|
package/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ declare class plotline {
|
|
|
9
9
|
showMockStudy(): void;
|
|
10
10
|
setColor(colors: {[key: string]: string}): void;
|
|
11
11
|
trackPage(pageId: string): void;
|
|
12
|
+
setShouldDisablePlotline(shouldDisablePlotline: boolean): void;
|
|
12
13
|
showStory(storyId: string, slideId?: string): void;
|
|
13
14
|
debug(): void;
|
|
14
15
|
notifyScroll(): void;
|
package/index.js
CHANGED
|
@@ -106,6 +106,10 @@ class plotline {
|
|
|
106
106
|
RNPlotline.trackPage(pageId);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
+
setShouldDisablePlotline (shouldDisablePlotline) {
|
|
110
|
+
RNPlotline.setShouldDisablePlotline(shouldDisablePlotline);
|
|
111
|
+
}
|
|
112
|
+
|
|
109
113
|
showStory (storyId, slideId) {
|
|
110
114
|
if (slideId) {
|
|
111
115
|
RNPlotline.showStory(storyId, slideId);
|
package/ios/RNPlotline.m
CHANGED
|
@@ -63,6 +63,11 @@ RCT_EXPORT_METHOD(setColor:(NSDictionary *)colors)
|
|
|
63
63
|
[Plotline setColorWithColors:colors];
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
RCT_EXPORT_METHOD(setShouldDisablePlotline:(NSNumber *)shouldDisablePlotline)
|
|
67
|
+
{
|
|
68
|
+
[Plotline setShouldDisablePlotlineWithShouldDisablePlotline:shouldDisablePlotline];
|
|
69
|
+
}
|
|
70
|
+
|
|
66
71
|
RCT_EXPORT_METHOD(debug)
|
|
67
72
|
{
|
|
68
73
|
[Plotline debugWithShouldDebug:true];
|