rampkit-expo-dev 0.0.8 → 0.0.10

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.
@@ -12,11 +12,11 @@ export declare class RampKitCore {
12
12
  environment?: string;
13
13
  autoShowOnboarding?: boolean;
14
14
  onOnboardingFinished?: (payload?: any) => void;
15
- showPaywall?: () => void;
15
+ showPaywall?: (payload?: any) => void;
16
16
  }): Promise<void>;
17
17
  getOnboardingData(): any;
18
18
  getUserId(): string | null;
19
19
  showOnboarding(opts?: {
20
- showPaywall?: () => void;
20
+ showPaywall?: (payload?: any) => void;
21
21
  }): void;
22
22
  }
@@ -13,7 +13,7 @@ export declare function showRampkitOverlay(opts: {
13
13
  requiredScripts?: string[];
14
14
  onClose?: () => void;
15
15
  onOnboardingFinished?: (payload?: any) => void;
16
- onShowPaywall?: () => void;
16
+ onShowPaywall?: (payload?: any) => void;
17
17
  }): void;
18
18
  export declare function hideRampkitOverlay(): void;
19
19
  export declare function preloadRampkitOverlay(opts: {
@@ -30,6 +30,6 @@ declare function Overlay(props: {
30
30
  prebuiltDocs?: string[];
31
31
  onRequestClose: () => void;
32
32
  onOnboardingFinished?: (payload?: any) => void;
33
- onShowPaywall?: () => void;
33
+ onShowPaywall?: (payload?: any) => void;
34
34
  }): any;
35
35
  export default Overlay;
@@ -477,7 +477,7 @@ function Overlay(props) {
477
477
  }
478
478
  catch (_) { }
479
479
  }
480
- return ((0, jsx_runtime_1.jsxs)(react_native_1.View, { style: [
480
+ return ((0, jsx_runtime_1.jsxs)(react_native_1.Animated.View, { style: [
481
481
  styles.root,
482
482
  !visible && styles.invisible,
483
483
  visible && { opacity: overlayOpacity },
@@ -579,7 +579,7 @@ function Overlay(props) {
579
579
  // 6) Request to show paywall
580
580
  if ((data === null || data === void 0 ? void 0 : data.type) === "rampkit:show-paywall") {
581
581
  try {
582
- (_b = props.onShowPaywall) === null || _b === void 0 ? void 0 : _b.call(props);
582
+ (_b = props.onShowPaywall) === null || _b === void 0 ? void 0 : _b.call(props, data === null || data === void 0 ? void 0 : data.payload);
583
583
  }
584
584
  catch (_) { }
585
585
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rampkit-expo-dev",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "The Expo SDK for RampKit. Build, test, and personalize app onboardings with instant updates.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",