stripe-react-native
stripe-react-native copied to clipboard
In Android app crash in release mode
Describe the bug
Android app is crash while initialising stripe
To Reproduce useEffect(() => { initializeStripe() }, [])
export const initializeStripe = async () => { const publishableKey = "km2Vp...." if (!publishableKey) { console.warn('Stripe key is missing!'); return; } try { const resStripeInit = await initStripe({ publishableKey, merchantIdentifier: 'merchant.identifier', }); console.log('resStripeInit resStripeInit:-- ', resStripeInit); } catch (error) { console.log('error initializeStripe raised', error); } } Expected behavior
Smartphone (please complete the following information):
- Device: Android 11
Additional context "react-native": "0.78.1", "@stripe/stripe-react-native": "^0.45.0", also on "^0.46.0"