-
Notifications
You must be signed in to change notification settings - Fork 302
Description
We are facing an intermittent crash on Android while using Stripe PaymentSheet in a React Native app.
The PaymentSheet opens successfully sometimes, but randomly crashes at runtime with a NoSuchMethodError related to Jetpack Compose.
This makes the issue confusing because:
The app builds successfully
PaymentSheet sometimes works
But crashes occur randomly during runtime
Crash Log
NoSuchMethodError
No static method animateItemPlacement$default(Landroidx/compose/foundation/lazy/LazyItemScope;Landroidx/compose/ui/Modifier;Landroidx/compose/animation/core/FiniteAnimationSpec;ILjava/lang/Object;)Landroidx/compose/ui/Modifier; in class Landroidx/compose/foundation/lazy/LazyItemScope; or its super classes (declaration of 'androidx.compose.foundation.lazy.LazyItemScope' appears in /data/app/~~Ib6ljAMySeiZjnG24wuUYQ==/com.kryptoskatt.android-bSXyIJGBbqxQzRtuArj25Q==/base.apk)
Environment Details
React Native: 0.73.9
@stripe/stripe-react-native: 0.39.x
Kotlin version: 1.9.20
Android Gradle Plugin: compatible with SDK 35
Build Tools Version: 35.0.0
Compile SDK: 35
Target SDK: 35
Min SDK: 24
NDK Version: 25.1.8937393
Question / Help Needed
What exact Jetpack Compose BOM / version is required for @stripe/stripe-react-native@0.39.x?
Does Stripe internally depend on specific Compose Foundation APIs?
Is there an official recommendation to force Compose versions when using Stripe with React Native?
Are there plans to shade or isolate Compose dependencies to avoid runtime conflicts?