plotline-engage 4.2.9 → 4.3.1
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 +1 -1
- package/index.d.ts +1 -0
- package/index.js +6 -0
- package/ios/RNPlotline.m +5 -0
- package/package.json +1 -1
package/android/build.gradle
CHANGED
package/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ declare class plotline {
|
|
|
10
10
|
setColor(colors: {[key: string]: string}): void;
|
|
11
11
|
trackPage(pageId: string): void;
|
|
12
12
|
setShouldDisablePlotline(shouldDisablePlotline: boolean): void;
|
|
13
|
+
setShouldEnableScrollDelegates(shouldEnableScrollDelegates: boolean): void;
|
|
13
14
|
showStory(storyId: string, slideId?: string): void;
|
|
14
15
|
debug(): void;
|
|
15
16
|
notifyScroll(): void;
|
package/index.js
CHANGED
|
@@ -110,6 +110,12 @@ class plotline {
|
|
|
110
110
|
RNPlotline.setShouldDisablePlotline(shouldDisablePlotline);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
setShouldEnableScrollDelegates (shouldEnableScrollDelegates) {
|
|
114
|
+
if (Platform.OS === "ios") {
|
|
115
|
+
RNPlotline.setShouldEnableScrollDelegates(shouldEnableScrollDelegates);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
113
119
|
showStory (storyId, slideId) {
|
|
114
120
|
if (slideId) {
|
|
115
121
|
RNPlotline.showStory(storyId, slideId);
|
package/ios/RNPlotline.m
CHANGED
|
@@ -68,6 +68,11 @@ RCT_EXPORT_METHOD(setShouldDisablePlotline:(NSNumber *)shouldDisablePlotline)
|
|
|
68
68
|
[Plotline setShouldDisablePlotlineWithShouldDisablePlotline:shouldDisablePlotline];
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
RCT_EXPORT_METHOD(setShouldEnableScrollDelegates:(NSNumber *)shouldEnableScrollDelegates)
|
|
72
|
+
{
|
|
73
|
+
[Plotline setShouldEnableScrollDelegatesWithShouldEnableScrollDelegates:shouldEnableScrollDelegates];
|
|
74
|
+
}
|
|
75
|
+
|
|
71
76
|
RCT_EXPORT_METHOD(debug)
|
|
72
77
|
{
|
|
73
78
|
[Plotline debugWithShouldDebug:true];
|