Skip to content

Android old-arch mismatch: SYSTEM_INFO exported but not declared in NativeStripeSdkModuleSpec (v0.59.2) #2340

@L0xGames

Description

@L0xGames

Summary

On Android old architecture, @stripe/stripe-react-native@0.59.2 exports SYSTEM_INFO from StripeSdkModule.kt, but old-arch NativeStripeSdkModuleSpec.java does not declare it as an optional constant.

This appears to trigger React Native's debug/internal constant validation in getConstants().

Affected version

  • @stripe/stripe-react-native: 0.59.2 (latest as of 2026-03-10)

Relevant source lines

Observed behavior

In Android debug/internal runs (old arch), app startup can fail when RN validates constants because SYSTEM_INFO is present in exported constants but undeclared in old-arch Flow constants.

Expected behavior

Old-arch spec should accept SYSTEM_INFO as optional (or otherwise be regenerated to match exported constants).

Temporary workaround

Patching old-arch spec locally works:

Set<String> optionalFlowConstants = new HashSet<>(Arrays.asList(
    "SYSTEM_INFO"
));

Suggested fix

Include SYSTEM_INFO in old-arch optional constants (or regenerate old-arch codegen/spec so it matches current exported constants).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions