plotline-engage 4.4.4 → 4.4.5
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
|
@@ -154,6 +154,10 @@ public class RNPlotline extends ReactContextBaseJavaModule {
|
|
|
154
154
|
Plotline.setShouldDisablePlotline(shouldDisablePlotline);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
+
@ReactMethod
|
|
158
|
+
public void setShouldDisableBackPressedListener(boolean shouldDisableBackPressedListener){
|
|
159
|
+
Plotline.setShouldDisableBackPressedListener(shouldDisableBackPressedListener);
|
|
160
|
+
}
|
|
157
161
|
@ReactMethod
|
|
158
162
|
public void showStory(String storyId, String slideId){
|
|
159
163
|
final Activity activity = getCurrentActivity();
|
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
|
+
setShouldDisableBackPressedListener(setShouldDisableBackPressedListener: boolean): void;
|
|
13
14
|
setShouldEnableScrollDelegates(shouldEnableScrollDelegates: boolean): void;
|
|
14
15
|
showStory(storyId: string, slideId?: string): void;
|
|
15
16
|
debug(): void;
|
package/index.js
CHANGED
|
@@ -110,6 +110,14 @@ class plotline {
|
|
|
110
110
|
RNPlotline.setShouldDisablePlotline(shouldDisablePlotline);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
setShouldDisableBackPressedListener(shouldDisableBackPressedListener) {
|
|
114
|
+
if (Platform.OS === 'android') {
|
|
115
|
+
RNPlotline.setShouldDisableBackPressedListener(
|
|
116
|
+
shouldDisableBackPressedListener
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
113
121
|
setShouldEnableScrollDelegates (shouldEnableScrollDelegates) {
|
|
114
122
|
if (Platform.OS === "ios") {
|
|
115
123
|
RNPlotline.setShouldEnableScrollDelegates(shouldEnableScrollDelegates);
|