RevenueCat / RevenueCat/react-native-purchases

stripe.js downloaded after a single import of react-native-purchases

Open
#1,462 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
1.2k
Forks
117
Avg merge
14h 40m
Merged PRs (30d)
40

Description

Describe the bug

Importing the library automatically triggers stripe.js file downloads on web.

import "react-native-purchases"

It's pretty surprising and too much of behind the scenes, I'd consider this as a bug. No Stripe is enabled in my RC Dashboard.

  1. Environment
    1. Platform: Web
    2. SDK version:9.6.0
    3. OS version: Tahoe
    4. Xcode/Android Studio version: -
    5. React Native version: -
    6. SDK installation (CocoaPods + version or manual): -
    7. How widespread is the issue. Percentage of devices affected.
  2. Debug logs that reproduce the issue
  3. Steps to reproduce, with a description of expected vs. actual behavior
  4. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the web path exercised by a single import "react-native-purchases" and trace what initiates the stripe.js download. Reproduce with SDK 9.6.0 in a web environment, then verify that importing the library no longer downloads stripe.js when Stripe is not enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
payments, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.